NotificationBlock: Better handling of blockable trail items #492
Replies: 3 comments 8 replies
-
Yes. A blog's activity feed is the same for all members. |
Beta Was this translation helpful? Give feedback.
-
Not exactly on-topic, but your destructuring there is renaming - const isBlockable = ({ blog, post: id }) => blog?.isMember && blockedPostTargetIDs.includes(id) === false;
+ const isBlockable = ({ blog, post: { id } }) => blog?.isMember && blockedPostTargetIDs.includes(id) === false; |
Beta Was this translation helpful? Give feedback.
-
I think the best solution would be to detect in the confirmation window if the post about to be blocked is a reblog, and display an additional warning about blocking a reblog's notifications. To go further, there's also the inverse problem - if you block the original post's notifications, you'll still see notifications if those notifications are for your own reblog of that post (since they have different target IDs). So I would say there needs to be a warning either way, but what it says depends on whether the post you're blocking notifications on is a reblog or not. |
Beta Was this translation helpful? Give feedback.
-
No matter if it winds up being the reason behind #491 or not, the fact that NotificationBlock only blocks notes from the particular reblog you clicked on is definitely confusing, in my opinion, when the post in question contains trail items/a root item that you would receive notifications for.
It seems easy to detect whether this is the case (though perhaps this needs special handling for group blogs - do you get notifications about posts that a member of one of your group blogs created? I assume no?):
Question is, what to do about it? I can think of three options to add to the modal (besides providing an explanation):
I started on a demo of the third option (and spent far too many lines on grammar, but that can be refined later if this is your desired path):
https://github.com/AprilSylph/XKit-Rewritten/compare/master...marcustyphoon:notificationblock-handle-previous?expand=1
But, what do you think? I think I would definitely lean towards 1 or 2.
(As an aside, I think it would be much easier to understand what's going on if there were a visual indicator on posts - and, given the behavior brought up here, trail items - whose notifications have been blocked. This would be a piece of cake to code, but finding an elegant place for the indicator if this did include trail items is definitely nontrivial. But the amount of UI clutter added seems really small considering how few posts this would affect.)
Beta Was this translation helpful? Give feedback.
All reactions