mirror of
https://github.com/cquest/tootbot.git
synced 2025-02-25 11:28:37 +00:00
missing space
This commit is contained in:
parent
01174b1cf0
commit
f063ecbea1
@ -92,10 +92,10 @@ for t in reversed(d.entries):
|
|||||||
m = re.search(r"pic.twitter.com[^ \xa0]*", c)
|
m = re.search(r"pic.twitter.com[^ \xa0]*", c)
|
||||||
if m != None:
|
if m != None:
|
||||||
l = m.group(0)
|
l = m.group(0)
|
||||||
c = c.replace(l,'')
|
c = c.replace(l,' ')
|
||||||
|
|
||||||
# remove ellipsis
|
# remove ellipsis
|
||||||
c = c.replace('\xa0…','')
|
c = c.replace('\xa0…',' ')
|
||||||
|
|
||||||
if toot_media is not None:
|
if toot_media is not None:
|
||||||
toot = mastodon_api.status_post(c, in_reply_to_id=None, media_ids=toot_media, sensitive=False, visibility='public', spoiler_text=None)
|
toot = mastodon_api.status_post(c, in_reply_to_id=None, media_ids=toot_media, sensitive=False, visibility='public', spoiler_text=None)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user