You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I dug into the handle_POST_comments() code and I think what's happening is an xid is being created without an equivalent pid before the function checks if it needs to create a pid. I managed to fix the issue with these changes:
Expected behavior:
Submitting a comment using
xid
param should submit correctlyActual behavior:
Throws
polis_err_post_comment_bad_pid
errorTo Reproduce:
edge
branchdata-xid
paramor
edge
branch/api/v3/comments
with the following body:{ "txt": "Comment text.", "pid": "mypid", "conversation_id": <conversation-id>, "vote": -1, "agid": 1, "xid": "any-xid" }
Additional context:
I dug into the
handle_POST_comments()
code and I think what's happening is an xid is being created without an equivalent pid before the function checks if it needs to create a pid. I managed to fix the issue with these changes:lpalazzi@5dea271
Not sure if these changes break any intended functionality but it fixes the issue for me.
The text was updated successfully, but these errors were encountered: