rss-bot icon indicating copy to clipboard operation
rss-bot copied to clipboard

post_id is always null

Open doug-wade opened this issue 1 year ago • 2 comments

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.

doug-wade avatar Jan 28 '24 19:01 doug-wade

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

Ategon avatar Jan 28 '24 20:01 Ategon

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

Ategon avatar Feb 09 '24 05:02 Ategon