Notifications for UserInput replies

Using atmo.pub notifications to know when someone is replying to me on UserInput

app.userinput.reply
Lexicon
app.userinput.reply
Operations
Record created

Steps (5)

Conditiongate
  • Continue only if event.commit.record.subject.uri contains {{self}} - It's replying to my discussion
  • or event.commit.record.parent.uri contains {{self}} - It's replying to my reply
Conditionbranch
  • If event.did does not equal {{self}} - It's not me replying to myself
Then
Fetch recorddiscussion- Fetches data from the original discussion, to fill the notification with more information
Lookup
{{event.commit.record.subject.uri}}
Fetch recordspace- Fetched data from the space where the discussion was posted, to fill the notification with more information
Lookup
{{discussion.record.space.uri}}

Send notificationAction 1

Title
New reply from {{didToHandle(event.did)}} on UserInput
Body
"{{discussion.record.title}}" at {{space.record.name}} by {{didToHandle(space.did)}}
Link
https://userinput.app/d/{{discussion.did}}/{{discussion.rkey}}