diff --git a/files/routes/posts.py b/files/routes/posts.py
index 675a72d30..c203c6f8e 100644
--- a/files/routes/posts.py
+++ b/files/routes/posts.py
@@ -924,6 +924,7 @@ def submit_post(v):
if file.content_type.startswith('image/'):
name = f'/images/{time.time()}'.replace('.','')[:-5] + '.webp'
file.save(name)
+ url = process_image(name)
body += f"\n\n"
elif file.content_type.startswith('video/'):
file.save("video.mp4")
@@ -1022,6 +1023,7 @@ def submit_post(v):
file.save("video.mp4")
with open("video.mp4", 'rb') as f:
url = requests.request("POST", "https://api.imgur.com/3/upload", headers={'Authorization': f'Client-ID {CATBOX_KEY}'}, files=[('video', f)]).json()['data']['link']
+ new_post.url = url
g.db.add(new_post)
diff --git a/files/templates/comments.html b/files/templates/comments.html
index da3507f1a..9795b233f 100644
--- a/files/templates/comments.html
+++ b/files/templates/comments.html
@@ -324,7 +324,7 @@
{% endif %}
-
+
{% if v and request.path.startswith('/@') and v.admin_level == 0 %}
{% if voted==-1 %}