-
Notifications
You must be signed in to change notification settings - Fork 184
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 tag blocklist for registered and anonymous users #613
base: master
Are you sure you want to change the base?
Conversation
Regarding tests, I provide only fixes for existing tests, as well as 2 minimal tests, because for some reason, tests are failing with nonsensical states (posts created from a previous test reappearing way later, blocklist tests executed before non-related other tests will break them...) |
Hello, I'm trying to use this fork but I can't find any UI element related to blocklists. I had to remove the "THREADS" line from the docker-compose.yml file, is this the reason this feature doesn't work ? |
Hi! The blocklist should be located on a user profile directly. You can also access instance-wide settings in the config file. Also, did you properly build the containers? Default docker compose pulls official images, but to test the features you gotta build containers from the repo |
I don't think I did that, but I don't know how to build from a pull request. How am I supposed to do that ? |
The same way as you'd do for main Szurubooru repo, but instead you use the repo and branch from which this PR takes the changes. You clone our repo, switch to the PR branch, and proceed to build the docker from here (see /doc/INSTALL.md file, "Building" section) . |
Sorry, didn't see that. I do however have another problem now. |
91a695f
to
34d0cca
Compare
Yes, this was a problem with the dockers used to build. It was fixed on master branch. I just rebased, it should be fixed now. |
Thanks, I could make it work ! Had to remove that "THREAD" thing in the yaml though, but again, thank you guys for your work. |
34d0cca
to
1c0b113
Compare
- "default_tag_blocklist": string containing a list of space-separated tags to add to a newly created user blocklist - "default_tag_blocklist_for_anonymous": boolean telling if the above mentionned default blocklist is applied to anonymous users - Added permissions to edit own blocklist, or others
- New field in User profile edition to add/remove tags from their blocklist - This field works as other tag fields, with auto-completion, and a proper list under the textbox - User must have the right permissions to edit blocklist (either their own or other users')
- Add default blocklist to user when created - Tags are created if added to a user blocklist - Add matching migration to DB to add the user blocklist table - Various other things
can i ask how soon this will be pushed to master branch, so my docker container could update? |
@WawaCallMePepe |
is there any way to blacklist tag categories? i would like to add category:something to default_tag_blocklist in config.yaml to wipe all images in specified category (or in user settings in webUI) any help or suggestions would be greatly appreciated |
@WawaCallMePepe Definitely something to be looked into, as these are oversights imo. For the time being, doesn't seem possible to block categories, or prefixes without a dummy tag being made. |
Found a bug (maybe fixable somehow): when 'users:edit:self:blocklist' is set to moderator, normal users cant edit their avatar or email |
@WawaCallMePepe |
Created docker image from ec33fe5 commit on https://github.com/Lugrim/szurubooru Tried with fresh user in private firefox session, still getting "Insufficient privileges to do this." error |
This patchset introduces a "tag blocklist".
Features:
Everything is added to a separate database table for easier management.
Fixes: #317
Replaces: #583