bbb
This commit is contained in:
parent
d453fa8841
commit
5f7bbb6576
2 changed files with 14 additions and 2 deletions
|
@ -475,8 +475,14 @@ def api_comment(v):
|
||||||
'title': f'New reply by @{v.username}',
|
'title': f'New reply by @{v.username}',
|
||||||
'body': c.body,
|
'body': c.body,
|
||||||
'deep_link': f'https://{site}/comment/{c.id}?context=9&read=true#context',
|
'deep_link': f'https://{site}/comment/{c.id}?context=9&read=true#context',
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
|
'fcm': {
|
||||||
|
'notification': {
|
||||||
|
'title': f'New reply by @{v.username}',
|
||||||
|
'body': c.body,
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
|
@ -444,8 +444,14 @@ def message2(v, username):
|
||||||
'title': f'New message from @{v.username}',
|
'title': f'New message from @{v.username}',
|
||||||
'body': message,
|
'body': message,
|
||||||
'deep_link': f'https://{site}/notifications',
|
'deep_link': f'https://{site}/notifications',
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
|
'fcm': {
|
||||||
|
'notification': {
|
||||||
|
'title': f'New reply by @{v.username}',
|
||||||
|
'body': c.body,
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue