1
0
mirror of https://github.com/aquatix/digimarks.git synced 2025-12-06 22:05:09 +01:00

Fix for case where a bookmark has no title

This commit is contained in:
2018-03-24 21:33:15 +01:00
parent 6de9ba2642
commit c0c8e35246

View File

@@ -919,8 +919,11 @@ def publictag_feed(tagkey):
updated_date = bookmark.modified_date
if not bookmark.modified_date:
updated_date = bookmark.created_date
bookmarktitle = '{} (no title)'.format(bookmark.url)
if bookmark.title:
bookmarktitle = bookmark.title
feed.add(
bookmark.title,
bookmarktitle,
content_type='html',
author='digimarks',
url=bookmark.url,