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