mirror of
https://github.com/cquest/tootbot.git
synced 2024-11-23 20:11:06 +00:00
missing @ to detect retweets
This commit is contained in:
parent
ecbbf79a9a
commit
722e7192dd
|
@ -72,8 +72,8 @@ for t in reversed(d.entries):
|
|||
|
||||
#h = BeautifulSoup(t.summary_detail.value, "html.parser")
|
||||
c = t.title
|
||||
if t.author != '(%s)' % twitter:
|
||||
c = ("RT %s\n" % t.author[1:-1]) + c
|
||||
if t.author.lower() != ('(@%s)' % twitter).lower():
|
||||
c = ("RT https://twitter.com/%s\n" % t.author[2:-1]) + c
|
||||
toot_media = []
|
||||
# get the pictures...
|
||||
for p in re.finditer(r"https://pbs.twimg.com/[^ \xa0\"]*", t.summary):
|
||||
|
|
Loading…
Reference in New Issue
Block a user