Style changes

This commit is contained in:
Yusur 2022-05-18 02:37:51 +02:00
parent c53cc54d1a
commit 4097e79bbb
3 changed files with 17 additions and 13 deletions

2
app.py
View file

@ -139,7 +139,7 @@ class Page(BaseModel):
def get_url(self):
return '/' + self.url + '/' if self.url else '/p/{}/'.format(self.id)
def short_desc(self):
text = remove_tags(self.latest.text)
text = remove_tags(self.latest.text, convert = not _getconf('site', 'simple_remove_tags', False))
return text[:200] + ('\u2026' if len(text) > 200 else '')
def change_tags(self, new_tags):
old_tags = set(x.name for x in self.tags)