use proper id

This commit is contained in:
cquest 2022-05-02 16:07:24 +02:00
parent 75e0353dc6
commit c900b065ab

View File

@ -136,14 +136,15 @@ for t in reversed(d.entries):
if tags:
c = c + '\n' + tags
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,
sensitive=False,
visibility='public',
spoiler_text=None)
if "id" in toot:
db.execute("INSERT INTO tweets VALUES ( ? , ? , ? , ? , ? )",
(t.id, toot["id"], source, mastodon, instance))
(id, toot["id"], source, mastodon, instance))
sql.commit()