From b00af91305b234d745c8833023a3bb47a9fc7bf5 Mon Sep 17 00:00:00 2001 From: Lynne Date: Mon, 25 Feb 2019 11:28:05 +1000 Subject: [PATCH] fixed CW stuff --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 765f016..bbc586d 100755 --- a/main.py +++ b/main.py @@ -173,7 +173,7 @@ for f in following: #you might be wondering, "lynne, what if the instance ratelimits you after 40 posts, and they've made 60 since main.py was last run? wouldn't the bot miss 20 posts and never be able to see them?" to which i reply, "it's called mstdn-ebooks not fediverse-ebooks. pleroma support is an afterthought" done = True pid = patterns["pid"].search(oi['object']['id']).group(0) - c.execute("REPLACE INTO toots (id, cw, userid, uri, content) VALUES (?, ?, ?, ?)", ( + c.execute("REPLACE INTO toots (id, cw, userid, uri, content) VALUES (?, ?, ?, ?, ?)", ( pid, 1 if (oi['object']['summary'] != None and oi['object']['summary'] != "") else 0, f.id,