Open Ategon opened 6 months ago
One way to solve it would be adding in functionality to check other pages of the search results rather than just the first
I've switched to making the bot actions closer to what lemmy-js-client does. getCommunityId
and getUserId
should be able to take names now in addition to ids. Try updating to 0.6.0 and seeing if the new functions help you resolve your issue.
Due to how getUserId and getCommunityId try to find the id (using the search), if the actual user or community doesnt show up in that then it cant be found by the query
For example if you try to look for the id of the community git@programming.dev. Doing a call to getCommunityId("git") then does an api call to https://programming.dev/api/v3/search?q=git&type_=Communities which does not have git as one of the options (instead its populated by other things that have git in the name)