rss-bot
rss-bot copied to clipboard
post_id is always null
I spelunking in my post database to debug an issue, and I found that the post_id
is always null
.
sqlite> select count(*) from posts;
119
sqlite> select count(*) from posts where post_id is null;
119
I'm on version v2.1.0 using node v20.11.0.
Looking in the code, it seems we're not capturing the response from createPost
, which should have the post id on response.post_view.post.id
.
I am planning a migration to v2.2.0 in the next couple of weeks, so I'm not certain a backport of the bugfix to the v2.1.x branch is worthwhile unless there are other users of the v2.1.x branch that are being affected by this issue.
I assume theres still some other people on 2.1 since not all major instances are on 0.19 yet so can try to backport a release
Been primarily busy with sublinks currently but can try to get that out today. Also need to update the bot to use my new bot framework
Edit: Started to do some work on it but being pushed abit later so I can clean up the repo more as well
Update on this, its been taking a bit since I ran into issues with the bot library in the new version of the rss bot so ive been making my own bot library to move my bots to. Moving karma bot over first and if that goes well im moving the rss bot