Smarter scope copy #28
No reviewers
Labels
No labels
a11y
Bug
Bug fix
Critical Priority
Documentation
Feature
Feature request
Held for next release cycle
High Priority
Low Priority
Medium Priority
Minor change
Translation/Locale
WIP
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AkkomaGang/akkoma-fe#28
Loading…
Reference in a new issue
No description provided.
Delete branch ":smart-scope"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
currently, if scope copy is enabled, replies to posts will always copy the OP's scope, even if the preferred default scope is more restricted
likewise, if it is disabled, posts may be replied to with a more open visibility than intended.
with this patch, here is what the scope of a reply would look like with scope copy on:
for clarity this is what shows up automatically when clicking 'reply', of course you can change all of this with a simple click, it's just that i often find myself not realizing i'm on the wrong scope until it's too late
@ -120,3 +120,3 @@
}
const scope = ((this.copyMessageScope && scopeCopy) || this.copyMessageScope === 'direct')
const scope = (this.copyMessageScope && (
i'm not the biggest fan of this long ternary, it's really not easy to figure out
any chance you could extract this to a
function(default_scope, post_scope)
and lay it out a bit more formally?ah that's far easier to read, thank