mirror of
https://github.com/ioistired/pleroma-ebooks.git
synced 2024-11-20 02:14:52 +01:00
fixed CW stuff
This commit is contained in:
parent
7a337e0fc6
commit
b00af91305
2
main.py
2
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"
|
#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
|
done = True
|
||||||
pid = patterns["pid"].search(oi['object']['id']).group(0)
|
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,
|
pid,
|
||||||
1 if (oi['object']['summary'] != None and oi['object']['summary'] != "") else 0,
|
1 if (oi['object']['summary'] != None and oi['object']['summary'] != "") else 0,
|
||||||
f.id,
|
f.id,
|
||||||
|
Loading…
Reference in New Issue
Block a user