[Bug] Thread Breaking on Some Locked Posts When I Follow Both People #89

Closed
opened 2022-07-31 21:56:13 +00:00 by arcana · 10 comments

Screenshots anonymised due to being locked posts but the issue is that threads often break with certain users when the thread is locked. It will seem to be a new thread and I won't actually be able to see the post that is being replied to or any earlier posts in the thread

image
image

Screenshots anonymised due to being locked posts but the issue is that threads often break with certain users when the thread is locked. It will seem to be a new thread and I won't actually be able to see the post that is being replied to or any earlier posts in the thread ![image](/attachments/0d1ab99f-256c-49c5-8dc6-bdbed8bda551) ![image](/attachments/4c54de5c-c76f-4e90-9995-ee5b4c9a7f63)

ok some debugging steps to help here

  1. open a broken reply (as pictured)
  2. open replace notice in the URL with api/v1/statuses - i.e instead of https://akko.disqordia.space/notice/ALypMnPy9EfONs8GOm, go to https://akko.disqordia.space/api/v1/statuses/ALypMnPy9EfONs8GOm
  3. check that the data includes in_reply_to_id, grab that string
  4. add /context to the end of the URL, should be https://akko.disqordia.space/api/v1/statuses/ALypMnPy9EfONs8GOm/context
  5. see if ancestors has anything in it
  6. go to https://akko.disqordia.space/api/v1/statuses/<in_reply_to_id>, with the ID from 4, see if you can see it

if 6 works but 5 doesn't i'll have something to narrow in on

ok some debugging steps to help here 1. open a broken reply (as pictured) 2. open replace `notice` in the URL with `api/v1/statuses` - i.e instead of `https://akko.disqordia.space/notice/ALypMnPy9EfONs8GOm`, go to `https://akko.disqordia.space/api/v1/statuses/ALypMnPy9EfONs8GOm` 3. check that the data includes `in_reply_to_id`, grab that string 4. add `/context` to the end of the URL, should be `https://akko.disqordia.space/api/v1/statuses/ALypMnPy9EfONs8GOm/context` 5. see if `ancestors` has anything in it 6. go to `https://akko.disqordia.space/api/v1/statuses/<in_reply_to_id>`, with the ID from 4, see if you can see it if 6 works but 5 doesn't i'll have something to narrow in on
Author
  1. in_reply_to_id is null

nothing in ancestors

3. in_reply_to_id is null nothing in ancestors
Author

I'll repeat these steps again if I see it again to try to get a bigger sample size

I'll repeat these steps again if I see it again to try to get a bigger sample size

ok not having in_reply_to_id means that we had trouble fetching the status they were replying to (or it wasn't filled in)

hm, might have to rope eris in here to get the backend AP data to check what's going on at some point

ok not having `in_reply_to_id` means that we had trouble fetching the status they were replying to (or it wasn't filled in) hm, might have to rope eris in here to get the backend AP data to check what's going on at some point
Contributor

hm, might have to rope eris in here to get the backend AP data to check what's going on at some point

Watcha need me to do?

> hm, might have to rope eris in here to get the backend AP data to check what's going on at some point > Watcha need me to do?

this will be quite awkward i warn you

first, @arcana will need to look at the /api/v1/statuses/<id> endpoint as above

find the url that looks like "https://somewhere/objects/blah`

then on the machine itself, in postgres (probably psql akkoma_prod or similar), run select (data->>'inReplyTo') from objects where (data->>'id') = '<the id found above>';

this should return a single result

run select (data->>'id') from objects where (data->>'id') = '<the id the last command spat out>';

if this returns a single entry, then federation is fine, if it returns nothing, then we've got a federation issue (:()

this will be quite awkward i warn you first, @arcana will need to look at the `/api/v1/statuses/<id>` endpoint as above find the url that looks like "https://somewhere/objects/blah` then on the machine itself, in postgres (probably `psql akkoma_prod` or similar), run `select (data->>'inReplyTo') from objects where (data->>'id') = '<the id found above>';` this should return a single result run `select (data->>'id') from objects where (data->>'id') = '<the id the last command spat out>';` if this returns a single entry, then federation is fine, if it returns nothing, then we've got a federation issue (:()
Author
@eris the url is https://misskey.bubbletea.dev/notes/937u8irz7h
eris added the
Bug
label 2022-08-01 18:04:28 +00:00
Contributor

this seems like a federation issue from my testing, those commands return this:

 ?column? 
----------
(0 rows)
this seems like a federation issue from my testing, those commands return this: ``` ?column? ---------- (0 rows) ```

yep, this was indeed a federation issue

fixed in akkoma!#145 (praise helene)

yep, this was indeed a federation issue fixed in akkoma!#145 (praise helene)

tested, works, closing

tested, works, closing
Sign in to join this conversation.
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: AkkomaGang/akkoma-fe#89
No description provided.