PDS Admin tool make it easier to moderate your PDS with labels
43
fork

Configure Feed

Select the types of activity you want to include in your feed.

Notify for only active accounts

authored by

Chris Greenacre and committed by tangled.org 02630f91 aa795c4e

+10 -8
+10 -8
src/handlers/pdsSubscriber.ts
··· 41 41 "Identity event", 42 42 ); 43 43 if (config.notifyOnNewAccounts) { 44 - await queue.add(() => 45 - sendNewAccountNotification(config.notifyEmails, { 46 - did: message.did, 47 - pds: config.host 48 - }).catch((err) => { 49 - logger.error({ err }, "Error sending new account notification email") 50 - }) 51 - ); 44 + if (message.active == true) { 45 + await queue.add(() => 46 + sendNewAccountNotification(config.notifyEmails, { 47 + did: message.did, 48 + pds: config.host 49 + }).catch((err) => { 50 + logger.error({ err }, "Error sending new account notification email") 51 + }) 52 + ); 53 + } 52 54 } 53 55 await queue.add(() => 54 56 handleNewIdentityEvent(