瀏覽代碼

missing space

master
cquest 7 年之前
父節點
當前提交
f063ecbea1
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      tootbot.py

+ 2
- 2
tootbot.py 查看文件

@@ -92,10 +92,10 @@ for t in reversed(d.entries):
m = re.search(r"pic.twitter.com[^ \xa0]*", c)
if m != None:
l = m.group(0)
c = c.replace(l,'')
c = c.replace(l,' ')

# remove ellipsis
c = c.replace('\xa0…','')
c = c.replace('\xa0…',' ')

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)


Loading…
取消
儲存