This repository has been archived by the owner on Apr 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 45
WIP: Inline Moderation #120
Closed
Closed
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
3152bf1
Basic moderation architecture
wpillar 0ba1740
Tidying up how inline moderation bar is rendered
wpillar 817031f
Frontend handling for inline moderation
wpillar 3377358
Making ModerationController more generic
wpillar 86dd8a1
Add ModerationRequest to handle lots of stuff for us
wpillar 3f6e73f
MovePost moderation and support for moderation options and forms
wpillar 03bf647
Add ModerationInterface::visible()
wpillar c419ead
Adding MergePosts moderation
wpillar 718fb8d
Make array moderations only appear when more than one post is selected
wpillar 54d5a55
Delete post moderation
wpillar 7bdd0ef
Adding approval of topic from forum show view
wpillar 1fbfa32
When approving a topic, do the same to the first post too
wpillar f676994
Dynamic name of what is being selected
wpillar d85f7c9
DeleteTopic moderation
wpillar d150f4a
Make sure only checkboxes in topic-lists are counted
wpillar 655c8d5
Support for multiple fields to be specified by a moderation presenter
wpillar a87af60
Adding close/open moderation to topics
wpillar a6707d2
MoveTopic moderation
wpillar b714ab7
Fixing a few issues and compiling the front-end
wpillar 09f7c4d
Default posts and topics to being approved:
wpillar 2c6423e
Forget the caches when moving a topic to a forum
wpillar 16b6026
Update the last post of a forum when moving a topic to a forum
wpillar a877c66
Add new lines around the horizontal rule separating merged posts
wpillar 54aea10
Inject a forum repository rather that invoking app()
wpillar 5388323
Ensure first post approval/unapproval applies to the topic and vice v…
wpillar 1101f68
Fixing the clear selection link in the moderation bar
wpillar d0ee30f
Don't allow replies to a closed topic
wpillar 2b272cf
Adding mybb/standards as a dev dependency
wpillar 0a09a04
Fixing standards issues
wpillar 1c32f7f
Adding composer commands for the sniffer and sniff fixer
wpillar b44309a
Adding Licence headers
wpillar e83893f
Updating mybb/standards dependency
wpillar cda476b
Fixing some standards issues and the sniffer
wpillar 94a1840
Add default attribute to closed column on the forums and topics tables:
wpillar 7d9c386
Removing phpcs and standards install from cicle config
wpillar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace MyBB\Core\Database\Repositories; | ||
|
||
use Illuminate\Database\Eloquent\Model; | ||
|
||
interface RepositoryInterface | ||
{ | ||
/** | ||
* @param int $id | ||
* | ||
* @return Model | ||
*/ | ||
public function find($id); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to update the cache (simply call
forget
for now), otherwise the other functions will return invalid data.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok cool, thanks.