aboutsummaryrefslogtreecommitdiff
path: root/ignis/views.py
diff options
context:
space:
mode:
authorBobby <[email protected]>2022-12-01 00:22:43 -0500
committerBobby <[email protected]>2022-12-01 00:22:43 -0500
commit57a1b08473a172e53ee19cacfc4d8b17eb77bdad (patch)
treea011afc0d385ad8f62ad7a9764583a2cfaef6e7f /ignis/views.py
parent86923f4edf2a2fdc180e6ffe5eea368a6a6d91f6 (diff)
downloadthatcomputerscientist-57a1b08473a172e53ee19cacfc4d8b17eb77bdad.tar.xz
thatcomputerscientist-57a1b08473a172e53ee19cacfc4d8b17eb77bdad.zip
Add Image URL Extensions
Diffstat (limited to 'ignis/views.py')
-rw-r--r--ignis/views.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ignis/views.py b/ignis/views.py
index 0bd878fe..a3f7d479 100644
--- a/ignis/views.py
+++ b/ignis/views.py
@@ -35,6 +35,7 @@ def tex(request):
@csrf_exempt
def post_image(request, post_id):
+ post_id = post_id.replace('.png', '')
pi = Post.objects.get(id=post_id).post_image
if not pi:
return HttpResponse('No image found!', status=404)
@@ -64,6 +65,7 @@ def get_image(request, post_id, image_name):
@csrf_exempt
def cover_image(request, repository):
force_reload = request.GET.get('force_reload')
+ repository = repository.replace('.gif', '')
# check if the image is in RepositoryTitles
try:
if force_reload: