mirror of
https://github.com/cquest/tootbot.git
synced 2024-11-27 14:01:07 +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:
|
||||
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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user