forked from MarseyWorld/MarseyWorld
bbbbbbbbb
parent
a0e0605f0c
commit
d43ccb0d0e
|
@ -475,6 +475,7 @@ def api_comment(v):
|
|||
'title': f'New reply by @{v.username}',
|
||||
'body': c.body,
|
||||
'deep_link': f'https://{site}/comment/{c.id}?context=9&read=true#context',
|
||||
'icon': f'https://{request.host}/assets/images/{SITE_NAME}/icon.webp',
|
||||
}
|
||||
},
|
||||
'fcm': {
|
||||
|
|
|
@ -444,6 +444,7 @@ def message2(v, username):
|
|||
'title': f'New message from @{v.username}',
|
||||
'body': message,
|
||||
'deep_link': f'https://{site}/notifications',
|
||||
'icon': f'https://{request.host}/assets/images/{SITE_NAME}/icon.webp',
|
||||
}
|
||||
},
|
||||
'fcm': {
|
||||
|
|
|
@ -73,11 +73,4 @@
|
|||
<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('{{request.host}}{{v.id}}')" />
|
||||
|
||||
<script type="text/javascript">
|
||||
function Subscribe(toast) {
|
||||
Android.Subscribe(toast);
|
||||
}
|
||||
</script>
|
||||
{% endblock %}
|
|
@ -167,7 +167,7 @@
|
|||
{% if v %}
|
||||
<div class="d-none" id="strid">{{request.host}}{{v.id}}</div>
|
||||
<div class="d-none" id="pusherid">{{PUSHER_ID}}</div>
|
||||
<script src="/static/assets/js/pusher.js?a=8"></script>
|
||||
<script src="/static/assets/js/pusher.js?a=9"></script>
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
Loading…
Reference in New Issue