Only notify followers of new public markets
This commit is contained in:
parent
0af1ff112b
commit
e35c0b3b52
|
@ -162,8 +162,9 @@ export const createNotification = async (
|
||||||
sourceUpdateType === 'created' &&
|
sourceUpdateType === 'created' &&
|
||||||
sourceContract
|
sourceContract
|
||||||
) {
|
) {
|
||||||
await notifyUsersFollowers(userToReasonTexts)
|
if (sourceContract.visibility === 'public')
|
||||||
notifyTaggedUsers(userToReasonTexts, recipients ?? [])
|
await notifyUsersFollowers(userToReasonTexts)
|
||||||
|
await notifyTaggedUsers(userToReasonTexts, recipients ?? [])
|
||||||
return await sendNotificationsIfSettingsPermit(userToReasonTexts)
|
return await sendNotificationsIfSettingsPermit(userToReasonTexts)
|
||||||
} else if (
|
} else if (
|
||||||
sourceType === 'contract' &&
|
sourceType === 'contract' &&
|
||||||
|
|
Loading…
Reference in New Issue
Block a user