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

Lexicon: notify users when they are quoted #692

Merged
merged 1 commit into from
Mar 19, 2023

Conversation

devinivy
Copy link
Collaborator

When users are quoted via a record embed they receive a quote notification.

Resolves #619 in concert w/ #691

@@ -143,38 +143,48 @@ const findDuplicate = async (): Promise<AtUri | null> => {

const eventsForInsert = (obj: IndexedPost) => {
const notifs: Message[] = []
const notified = new Set([obj.post.creator])
const maybeNotify = (notif: messages.NotificationInfo) => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice 👍

so one notif per post & order of precendence goes:

  • mention
  • quote
  • reply

Copy link
Collaborator

@dholms dholms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

excellent 🙌

@devinivy devinivy mentioned this pull request Mar 18, 2023
Base automatically changed from lex/embeds-in-embeds to lex-refactor March 19, 2023 23:50
@devinivy devinivy merged commit 5eaa03c into lex-refactor Mar 19, 2023
@devinivy devinivy deleted the lex/notif-for-quote branch March 19, 2023 23:51
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