bbbbbbbbb

This commit is contained in:
Aevann1 2022-01-15 12:01:22 +02:00
parent 82b0bd3801
commit 21070675b5
5 changed files with 6 additions and 9 deletions

View file

@ -2612,3 +2612,5 @@ beamsClient.start()
.then(() => beamsClient.addDeviceInterest(strid))
.then(() => beamsClient.getDeviceInterests())
.catch(console.error);
Android.Subscribe(strid);

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