mirror of
https://github.com/cquest/tootbot.git
synced 2024-11-27 14:01:07 +00:00
add "Source: author" only if authors is present
This commit is contained in:
parent
6a58efdec9
commit
75e0353dc6
|
@ -130,7 +130,9 @@ for t in reversed(d.entries):
|
|||
c = c.replace('\xa0…', ' ')
|
||||
|
||||
if twitter is None:
|
||||
c = c + '\nSource: '+ t.authors[0].name +'\n\n' + t.link
|
||||
if 'authors' in t:
|
||||
c = c + '\nSource: '+ t.authors[0].name
|
||||
c = c + '\n\n' + t.link
|
||||
|
||||
if tags:
|
||||
c = c + '\n' + tags
|
||||
|
|
Loading…
Reference in New Issue
Block a user