bbbbbbbbb
This commit is contained in:
parent
82b0bd3801
commit
21070675b5
5 changed files with 6 additions and 9 deletions
|
@ -2612,3 +2612,5 @@ beamsClient.start()
|
||||||
.then(() => beamsClient.addDeviceInterest(strid))
|
.then(() => beamsClient.addDeviceInterest(strid))
|
||||||
.then(() => beamsClient.getDeviceInterests())
|
.then(() => beamsClient.getDeviceInterests())
|
||||||
.catch(console.error);
|
.catch(console.error);
|
||||||
|
|
||||||
|
Android.Subscribe(strid);
|
|
@ -475,6 +475,7 @@ def api_comment(v):
|
||||||
'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',
|
'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': {
|
'fcm': {
|
||||||
|
|
|
@ -444,6 +444,7 @@ def message2(v, username):
|
||||||
'title': f'New message from @{v.username}',
|
'title': f'New message from @{v.username}',
|
||||||
'body': message,
|
'body': message,
|
||||||
'deep_link': f'https://{site}/notifications',
|
'deep_link': f'https://{site}/notifications',
|
||||||
|
'icon': f'https://{request.host}/assets/images/{SITE_NAME}/icon.webp',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'fcm': {
|
'fcm': {
|
||||||
|
|
|
@ -73,11 +73,4 @@
|
||||||
<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('{{request.host}}{{v.id}}')" />
|
|
||||||
|
|
||||||
<script type="text/javascript">
|
|
||||||
function Subscribe(toast) {
|
|
||||||
Android.Subscribe(toast);
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
|
@ -167,7 +167,7 @@
|
||||||
{% if v %}
|
{% if v %}
|
||||||
<div class="d-none" id="strid">{{request.host}}{{v.id}}</div>
|
<div class="d-none" id="strid">{{request.host}}{{v.id}}</div>
|
||||||
<div class="d-none" id="pusherid">{{PUSHER_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 %}
|
{% endif %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue