mirror of
https://github.com/aljazceru/ditto.git
synced 2026-02-23 05:56:03 +01:00
webpush: don't notify author about own events
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user