Skip to content
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

Default upload tags and anonymous uploads (improved) #552

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

neobooru
Copy link
Collaborator

No description provided.

@po5
Copy link
Contributor

po5 commented May 19, 2023

Would incorrectly check the anonymous box when duplicates were found. po5@91b11c5
The same querySelector led to the anonymous checkbox on individual images not actually doing anything. po5@02c230e

@Giraffaman
Copy link

hi - are there still any plans to merge this? Having default tags when uploading would be a great addition.

neobooru and others added 9 commits February 21, 2024 01:46
When similar posts were found, the anonymous upload checkbox for that
image would become checked, because we treat anything !== undefined
as 'checked', and in post_upload_views.js we set 'anonymous' to
a querySelector, which returns null on failure and not undefined.
Treat null as 'unchecked' to fix this issue, and prevent future mistakes
slipping past.
Anonymous checkbox on images would not actually do anything, when the
global checkbox was unchecked. The value of anonymous becomes a node,
and it fails the anonymous === true check in save().
I don't understand why anonymous is treated differently from other
post parameters and supplied as an argument to save().
Keeping it the way it is, I guess...
@KenwoodFox
Copy link

Oh! This would be super handy, auto-set tags and safety level?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants