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

Fix post edit controls appearing on inbox items #1374

Merged

Conversation

marcustyphoon
Copy link
Collaborator

Description

Quick Tags and Trim Reblogs currently detect the "answer" button on items in the inbox as an "edit" button and thus add their control buttons to those items. This doesn't make much sense; Trim Reblogs can't possibly do anything in this case. Quick Tags does function here but it's odd to be able to tag an ask before responding to it (and you have to open the editor to respond to it, at which point you can use Quick Tags in the editor if desired).

This removes this behavior.

Testing steps

  • Confirm that Quick Tags and Trim Reblogs don't add buttons to inbox items
  • Confirm that Quick Tags and Trim Reblogs add buttons to editable posts

@marcustyphoon marcustyphoon merged commit 599bda8 into AprilSylph:master Apr 29, 2024
2 checks passed
@marcustyphoon marcustyphoon deleted the ask-exclude-control-buttons branch April 29, 2024 09:12
marcustyphoon added a commit to marcustyphoon/XKit-Rewritten that referenced this pull request Apr 29, 2024
marcustyphoon added a commit to marcustyphoon/XKit-Rewritten that referenced this pull request May 3, 2024
I guess this selector should be a util, huh. or actually the whole editable-posts-get-buttons thing should be exported from control_buttons.js
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.

2 participants