adding link to the content
Signed-off-by: elfangor <vincentparedes@gmail.com> Signed-off-by: Romain Bignon <romain@symlink.me>
This commit is contained in:
parent
3a68deb9e5
commit
bc5c85cdb7
1 changed files with 3 additions and 2 deletions
|
|
@ -57,10 +57,11 @@ class NewsfeedBackend(BaseBackend, ICapMessages):
|
||||||
flags = Message.IS_HTML
|
flags = Message.IS_HTML
|
||||||
if not thread.id in self.storage.get('seen', default=[]):
|
if not thread.id in self.storage.get('seen', default=[]):
|
||||||
flags |= Message.IS_UNREAD
|
flags |= Message.IS_UNREAD
|
||||||
if len(entry.content):
|
if len(entry.content) > 0:
|
||||||
content = entry.content[0]
|
content = u"<p>Link %s</p> %s" % (entry.link, entry.content[0])
|
||||||
else:
|
else:
|
||||||
content = entry.link
|
content = entry.link
|
||||||
|
|
||||||
thread.title = entry.title
|
thread.title = entry.title
|
||||||
thread.root = Message(thread=thread,
|
thread.root = Message(thread=thread,
|
||||||
id=0,
|
id=0,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue