From 67d96a14010ce5ae18bd1980dc038833eaccf7d7 Mon Sep 17 00:00:00 2001 From: SouthFox Date: Thu, 1 Dec 2022 16:05:58 +0800 Subject: [PATCH] ui/show video, audio --- BDSM/templates/toot.html | 4 ++++ BDSM/templates/view.html | 4 ++++ BDSM/toot.py | 3 --- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/BDSM/templates/toot.html b/BDSM/templates/toot.html index 07be636..6d71985 100644 --- a/BDSM/templates/toot.html +++ b/BDSM/templates/toot.html @@ -41,6 +41,10 @@ {{ media.description }} + + {% elif media.type in ['gifv','video','audio'] %} +
+
{% endif %} {% endfor%} diff --git a/BDSM/templates/view.html b/BDSM/templates/view.html index 1151866..dbdbb05 100644 --- a/BDSM/templates/view.html +++ b/BDSM/templates/view.html @@ -44,6 +44,10 @@ {{ media.description }} + + {% elif media.type in ['gifv','video','audio'] %} +
+
{% endif %} {% endfor%} diff --git a/BDSM/toot.py b/BDSM/toot.py index 5b91781..c0efba5 100644 --- a/BDSM/toot.py +++ b/BDSM/toot.py @@ -49,8 +49,6 @@ def get_context(url, toot_id): db.session.commit() - - def toot_process(statuses, my_acct, duplicates_counter=0): for status in statuses: is_reblog = False @@ -222,7 +220,6 @@ def toot_process(statuses, my_acct, duplicates_counter=0): # poll_id,emoji_list,visibility,reblogged,favourited,bookmarked,sensitive,reblogs_count,favourites_count,language)) return duplicates_counter - def archive_toot(url, archive_match): mastodon, user = app_login(url) acct = mastodon.me().acct