diff options
| author | Bobby <[email protected]> | 2022-12-01 00:22:43 -0500 |
|---|---|---|
| committer | Bobby <[email protected]> | 2022-12-01 00:22:43 -0500 |
| commit | 57a1b08473a172e53ee19cacfc4d8b17eb77bdad (patch) | |
| tree | a011afc0d385ad8f62ad7a9764583a2cfaef6e7f /ignis/views.py | |
| parent | 86923f4edf2a2fdc180e6ffe5eea368a6a6d91f6 (diff) | |
| download | thatcomputerscientist-57a1b08473a172e53ee19cacfc4d8b17eb77bdad.tar.xz thatcomputerscientist-57a1b08473a172e53ee19cacfc4d8b17eb77bdad.zip | |
Add Image URL Extensions
Diffstat (limited to 'ignis/views.py')
| -rw-r--r-- | ignis/views.py | 2 |
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: |
