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' &&
|
||||
sourceContract
|
||||
) {
|
||||
await notifyUsersFollowers(userToReasonTexts)
|
||||
notifyTaggedUsers(userToReasonTexts, recipients ?? [])
|
||||
if (sourceContract.visibility === 'public')
|
||||
await notifyUsersFollowers(userToReasonTexts)
|
||||
await notifyTaggedUsers(userToReasonTexts, recipients ?? [])
|
||||
return await sendNotificationsIfSettingsPermit(userToReasonTexts)
|
||||
} else if (
|
||||
sourceType === 'contract' &&
|
||||
|
|
Loading…
Reference in New Issue
Block a user