feat(cipher): add ciphering

master
Romain J 7 months ago
parent 54766d60c1
commit f4378a5760
No known key found for this signature in database
GPG Key ID: 3227578329C2A3A7
  1. 7
      chat/templates/guild/details.html

@ -26,7 +26,12 @@
{% if channel.last_message %}
{# {% include "layouts/components/message/block.html" with message=channel.messages.first %}#}
<b class="uk-text-bold">[{{ channel.last_message.author }}]</b>
{{ channel.last_message.content }}
<span id="prev_{{ channel.last_message.id }}">{{ channel.last_message.content }}</span>
<script>
window.addEventListener('load', () => {
document.getElementById("prev_{{ channel.last_message.id }}").innerText = decipher('{{ channel.last_message.content }}', '{{ channel.last_message.author.id }}');
});
</script>
{% endif %}
</td>
<td>

Loading…
Cancel
Save