-
-
Notifications
You must be signed in to change notification settings - Fork 886
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add moderator view parameter to list posts #3176
Conversation
Note: woodpecker seems not to run when force-pushing the PR to correct the formatting? |
Can you explain why this would be useful? |
This was first brought up in LemmyNet/lemmy-ui#1294 and would allow a moderator of multiple communities to open the app and filter only the posts they need to moderate without being cluttered by other stuff. |
Maybe if this would the same time show posts from individually blocked users? Right now moderators can't really block any users individually as they will not be able to see the posts of these people then. But a "moderation view mode" that shows only moderated communities and shows all users regardless of block status might be a nice feature. |
That seems to be a rather important so I will probably rename moderated_only to moderator_view and disable blocking users while that is active. |
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.
Add a unit test for this one too if you would, seems pretty important.
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.
You need to run cargo +nightly fmt
, and resolve the conflicts. After that, I can do a lemmy-js-client release with this included, and give you the version #.
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 looks good now. @Nutomic once you approve I'll start a lemmy-js-client release with this included.
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.
Okay use this new lemmy-js-client: 0.18.3-rc.1
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.
Code looks ok
Head branch was pushed to by a user without write access
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.
Federation tests are failing for some reason, but if you get those working, we can merge.
I figured out why the federation tests keep failing, lemmy-js-client throws exceptions if a request fails (for example a community already exists -> error). There has been a new major version in the lemmy-js-client and a bunch of subversions so I don't quite know what the culprit is (probably https://github.com/LemmyNet/lemmy-js-client/blob/main/src/http.ts#L1333C1-L1345C6 here) and the older versions don't cause those exceptions. Adding How should I try and fix the remaining problems? |
There are examples in those jest tests of catching and ignoring errors. Also conflicts need fixed. |
I have the federation tests fixed in a PR, once that gets merged, you should be okay. |
Everything should work fine now, it would be great if you could squash all the commits for merging them, as some of the history here is a bit messed up now |
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.
Much better, thanks.
Add a new parameter to list posts: moderated_only to allow for a "moderator view"