forked from rDrama/rDrama
1
0
Fork 0

bbbbbbbbb

master
Aevann1 2022-01-15 12:01:22 +02:00
parent a0e0605f0c
commit d43ccb0d0e
4 changed files with 3 additions and 8 deletions

View File

@ -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': {

View File

@ -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': {

View File

@ -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 %}

View File

@ -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 %}