master
Aevann1 2022-01-15 11:48:52 +02:00
parent 05a70c5097
commit a0e0605f0c
3 changed files with 7 additions and 3 deletions

View File

@ -481,7 +481,9 @@ def api_comment(v):
'notification': {
'title': f'New reply by @{v.username}',
'body': c.body,
'deep_link': f'https://{site}/comment/{c.id}?context=9&read=true#context',
},
'data': {
'url': f'https://{site}/notifications',
}
}
},

View File

@ -450,7 +450,9 @@ def message2(v, username):
'notification': {
'title': f'New reply by @{v.username}',
'body': c.body,
'deep_link': f'https://{site}/notifications',
},
'data': {
'url': f'https://{site}/notifications',
}
}
},

View File

@ -73,7 +73,7 @@
<button class="btn btn-primary mt-3" onclick="post_toast('/admin/purge_cache');">PURGE CACHE</button>
{% endif %}
<input type="button" value="Say hello" onClick="Subscribe('debug-hallo')" />
<input type="button" value="Say hello" onClick="Subscribe('{{request.host}}{{v.id}}')" />
<script type="text/javascript">
function Subscribe(toast) {