forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2022-01-15 13:03:51 +02:00
parent 8267a19ef0
commit dda28492e8
3 changed files with 2 additions and 3 deletions

View File

@ -484,7 +484,7 @@ def api_comment(v):
'body': c.body, 'body': c.body,
}, },
'data': { 'data': {
'url': f'https://{site}/notifications', 'url': f'https://{site}/comment/{c.id}?context=9&read=true#context',
} }
} }
}, },

View File

@ -73,5 +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}}')" />
{% endblock %} {% endblock %}

View File

@ -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=160"></script> <script src="/static/assets/js/pusher.js?a=161"></script>
<script> <script>
Android.Subscribe('{{request.host}}{{v.id}}'); Android.Subscribe('{{request.host}}{{v.id}}');
</script> </script>