mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Update new recommendation notification message
This commit is contained in:
parent
e85ec51e6c
commit
181b401030
2 changed files with 9 additions and 3 deletions
|
|
@ -221,7 +221,14 @@ export const createLabelAndRuleForGroup = async (
|
|||
},
|
||||
{
|
||||
type: RuleActionType.SendNotification,
|
||||
params: [groupName],
|
||||
params: [
|
||||
`
|
||||
{
|
||||
"title": "New page recommended in ${groupName}",
|
||||
"body": "A new page was added to the group ${groupName}"
|
||||
}
|
||||
`,
|
||||
],
|
||||
},
|
||||
],
|
||||
filter: `recommendedBy:"${groupName}"`,
|
||||
|
|
|
|||
|
|
@ -134,8 +134,7 @@ export const triggerActions = async (
|
|||
const param = JSON.parse(params[0]) as NotificationData
|
||||
data.body = param.body
|
||||
data.title = param.title
|
||||
data.image = param.image
|
||||
data.data = param.data
|
||||
data.image = param.image || data.image
|
||||
}
|
||||
|
||||
return actionPromises.push(
|
||||
|
|
|
|||
Loading…
Reference in a new issue