mirror of
https://github.com/cquest/tootbot.git
synced 2025-05-08 11:53:55 +00:00
use summary in addition to title
This commit is contained in:
parent
491e3d7d91
commit
850374b9d6
@ -256,6 +256,14 @@ if source[:4] == 'http':
|
||||
# remove ellipsis
|
||||
c = c.replace('\xa0…', ' ')
|
||||
|
||||
if ('marianne' in mastodon) and 'summary' in t:
|
||||
c = c + '\n\n' + t.summary
|
||||
if len(c)>450:
|
||||
fin = c[450:].split(' ')
|
||||
c = c[:450] + fin[0]
|
||||
if len(fin)>1:
|
||||
c = c + '…'
|
||||
|
||||
if 'authors' in t:
|
||||
c = c + '\nSource: ' + t.authors[0].name
|
||||
c = c + '\n\n' + t.link
|
||||
|
Loading…
x
Reference in New Issue
Block a user