mirror of
https://github.com/cquest/tootbot.git
synced 2025-05-25 10:25:46 +00:00
use proper id
This commit is contained in:
parent
75e0353dc6
commit
c900b065ab
@ -136,14 +136,15 @@ for t in reversed(d.entries):
|
|||||||
|
|
||||||
if tags:
|
if tags:
|
||||||
c = c + '\n' + tags
|
c = c + '\n' + tags
|
||||||
|
|
||||||
if toot_media is not None:
|
if toot_media is not None:
|
||||||
toot = mastodon_api.status_post(c, in_reply_to_id=None,
|
toot = mastodon_api.status_post(c,
|
||||||
|
in_reply_to_id=None,
|
||||||
media_ids=toot_media,
|
media_ids=toot_media,
|
||||||
sensitive=False,
|
sensitive=False,
|
||||||
visibility='public',
|
visibility='public',
|
||||||
spoiler_text=None)
|
spoiler_text=None)
|
||||||
if "id" in toot:
|
if "id" in toot:
|
||||||
db.execute("INSERT INTO tweets VALUES ( ? , ? , ? , ? , ? )",
|
db.execute("INSERT INTO tweets VALUES ( ? , ? , ? , ? , ? )",
|
||||||
(t.id, toot["id"], source, mastodon, instance))
|
(id, toot["id"], source, mastodon, instance))
|
||||||
sql.commit()
|
sql.commit()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user