Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

post_id is always null #17

Open
doug-wade opened this issue Jan 28, 2024 · 2 comments
Open

post_id is always null #17

doug-wade opened this issue Jan 28, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@doug-wade
Copy link
Contributor

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.

@Ategon
Copy link
Collaborator

Ategon commented Jan 28, 2024

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
Copy link
Collaborator

Ategon commented Feb 9, 2024

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 Ategon added the bug Something isn't working label Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

2 participants