From 7369954c5fb0b700491b5e29c43d471f380d49e3 Mon Sep 17 00:00:00 2001 From: j Date: Fri, 21 Jul 2023 11:14:38 +0100 Subject: [PATCH] self->document --- pandora/mobile/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/mobile/views.py b/pandora/mobile/views.py index 2a4514ce..9e02ae7b 100644 --- a/pandora/mobile/views.py +++ b/pandora/mobile/views.py @@ -28,7 +28,7 @@ def index(request, fragment): link = request.build_absolute_uri(document.get_absolute_url()) # FIXME: get preview image or fragment parse from url public_id = ox.toAZ(document.id) - if self.extension != 'html': + if document.extension != 'html': preview = '/documents/%s/512p.jpg' % public_id if page: preview = '/documents/%s/512p%s.jpg' % (public_id, page)