Add opt-in mechanism for mentions. #2

Closed
opened 2023-10-13 17:41:11 +00:00 by LogalDeveloper · 0 comments

All replies are currently configured with an allowed mentions filter which suppresses any mentions from generating notifications (pings) to users.

// Set up an allowed mentions filter which blocks any mentions from generating notifications to users.
final AllowedMentionsBuilder builder = new AllowedMentionsBuilder();
builder.setMentionEveryoneAndHere(false);
builder.setMentionRoles(false);
builder.setMentionUsers(false);
this.allowedMentions = builder.build();

// Set the allowed mentions filter which blocks all mentions from generating notifications.
response.setAllowedMentions(allowedMentions);

This was not always the default behavior for replies. Early in the operational history, the filter was not implemented and users would receive effectively random notifications whenever a reply contains a mention. Some users have expressed a preference to restore this behavior.

All replies are currently configured with an allowed mentions filter which suppresses any mentions from generating notifications (pings) to users. https://git.logal.dev/LogalDeveloper/Crabstero/src/commit/89ee198897081e6f5a43e2e96e1f11dff266f160/src/main/java/dev/logal/crabstero/utils/MarkovChainMessages.java#L38-L43 https://git.logal.dev/LogalDeveloper/Crabstero/src/commit/89ee198897081e6f5a43e2e96e1f11dff266f160/src/main/java/dev/logal/crabstero/utils/MarkovChainMessages.java#L103-L104 This was not always the default behavior for replies. Early in the operational history, the filter was not implemented and users would receive effectively random notifications whenever a reply contains a mention. Some users have expressed a preference to restore this behavior.
LogalDeveloper added the
Enhancement
label 2023-10-13 17:41:11 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: LogalDeveloper/Crabstero#2
No description provided.