mirror of
https://codeberg.org/diginaut/digimarks.git
synced 2026-05-06 20:24:10 +02:00
Fix for case where a bookmark has no title
This commit is contained in:
+4
-1
@@ -919,8 +919,11 @@ def publictag_feed(tagkey):
|
|||||||
updated_date = bookmark.modified_date
|
updated_date = bookmark.modified_date
|
||||||
if not bookmark.modified_date:
|
if not bookmark.modified_date:
|
||||||
updated_date = bookmark.created_date
|
updated_date = bookmark.created_date
|
||||||
|
bookmarktitle = '{} (no title)'.format(bookmark.url)
|
||||||
|
if bookmark.title:
|
||||||
|
bookmarktitle = bookmark.title
|
||||||
feed.add(
|
feed.add(
|
||||||
bookmark.title,
|
bookmarktitle,
|
||||||
content_type='html',
|
content_type='html',
|
||||||
author='digimarks',
|
author='digimarks',
|
||||||
url=bookmark.url,
|
url=bookmark.url,
|
||||||
|
|||||||
Reference in New Issue
Block a user