forked from MarseyWorld/MarseyWorld
bbb
parent
05a70c5097
commit
a0e0605f0c
|
@ -481,7 +481,9 @@ def api_comment(v):
|
||||||
'notification': {
|
'notification': {
|
||||||
'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',
|
},
|
||||||
|
'data': {
|
||||||
|
'url': f'https://{site}/notifications',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -450,7 +450,9 @@ def message2(v, username):
|
||||||
'notification': {
|
'notification': {
|
||||||
'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}/notifications',
|
},
|
||||||
|
'data': {
|
||||||
|
'url': f'https://{site}/notifications',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -73,7 +73,7 @@
|
||||||
<button class="btn btn-primary mt-3" onclick="post_toast('/admin/purge_cache');">PURGE CACHE</button>
|
<button class="btn btn-primary mt-3" onclick="post_toast('/admin/purge_cache');">PURGE CACHE</button>
|
||||||
{% endif %}
|
{% 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">
|
<script type="text/javascript">
|
||||||
function Subscribe(toast) {
|
function Subscribe(toast) {
|
||||||
|
|
Loading…
Reference in New Issue