Discord video support and more cleaning up

This commit is contained in:
some weird guy
2023-07-26 12:02:16 -07:00
parent 700b722736
commit 40355adef6
42 changed files with 24 additions and 396 deletions
@@ -31,6 +31,10 @@
<div class="body post-content">
{% if post.yt_vid %}
<a href="{% url "main:post-view" post.id %}" class="screenshot-container video"><img height="48" src="https://i.ytimg.com/vi/{{ post.yt_vid }}/default.jpg"></a>
{% elif post.discord_vid %}
<div class="DiscordCDN-container video">
<video class="discord-player" src="{{ post.url }}" controls></video>
</div>
{% endif %}
{% if post.drawing %}
<p class="post-content-memo"><img src="{{ post.drawing }}" class="post-memo"></p>