summaryrefslogtreecommitdiffstats
path: root/app/views.py
diff options
context:
space:
mode:
authorsyn <isaqtm@gmail.com>2020-03-23 10:42:48 +0300
committersyn <isaqtm@gmail.com>2020-03-23 10:42:48 +0300
commit27bccdea5d5e376fdecb27b03f692408a2cc1f99 (patch)
tree99f927303fa7bb1928c0e5c5ae7b400c74790148 /app/views.py
parent3ff1340efb5956c9b417c6e03c6bab5684dda384 (diff)
downloadblure-master.tar.gz
Fix image servingHEADmaster
* Fix hardcoded url * Improve resizing
Diffstat (limited to 'app/views.py')
-rw-r--r--app/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views.py b/app/views.py
index fcd3818..ef3bbd0 100644
--- a/app/views.py
+++ b/app/views.py
@@ -29,13 +29,13 @@ async def index(ctx):
@db_route('/i/<url>')
async def raw_image(ctx, url):
async with NGXImage(blure.url.to_id(url)) as image:
- return image.orig()
+ return image.send_image('o')
@db_route('/t/<url>')
async def thumb_image(ctx, url):
async with NGXImage(blure.url.to_id(url)) as image:
- return image.orig()
+ return image.send_image('m')
@db_route('/p/<url>')