highlight

This commit is contained in:
fireworks88 2021-09-05 15:50:33 +02:00
parent 96d815bd6b
commit 6f94e30854
3 changed files with 16 additions and 10 deletions

View file

@ -134,7 +134,7 @@ class Submission(Base, Stndrd, Age_times, Scores, Fuzzing):
return f"/post/{self.id}/{output}"
def rendered_page(self, read=None, sort=None, comment=None, comment_info=None, v=None):
def rendered_page(self, sort=None, last_view_utc=None, comment=None, comment_info=None, v=None):
# check for banned
if v and (v.admin_level >= 3 or self.author_id == v.id):
@ -153,8 +153,7 @@ class Submission(Base, Stndrd, Age_times, Scores, Fuzzing):
return render_template(template,
v=v,
p=self,
sort=sort,
read=read,
last_view_utc=last_view_utc,
linked_comment=comment,
comment_info=comment_info,
render_replies=True,