mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
webpush: don't notify author about own events
This commit is contained in:
parent
a7d8d86fa7
commit
4c5d98f402
1 changed files with 4 additions and 0 deletions
|
|
@ -252,6 +252,10 @@ async function webPush(event: NostrEvent): Promise<void> {
|
|||
.execute();
|
||||
|
||||
for (const row of rows) {
|
||||
if (row.pubkey === event.pubkey) {
|
||||
continue; // Don't notify authors about their own events.
|
||||
}
|
||||
|
||||
const notification = await renderNotification(event, { viewerPubkey: row.pubkey });
|
||||
if (!notification) {
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue