NicolasConstant / sengi

Mastodon & Pleroma Multi-account Desktop Client
https://nicolasconstant.github.io/sengi/
GNU Affero General Public License v3.0
534 stars 35 forks source link

"Record not found" when editing a status #588

Open crawlserv opened 1 year ago

crawlserv commented 1 year ago

Often when I try to edit a newly created status, it won't let me edit the status but instead show the error "record not found" – although editing the status on the web page of the Mastodon instance works perfectly.

NicolasConstant commented 1 year ago

Is it systematic or just time to time? If not systematic, do you see a reproducible pattern (time between creation and edition, etc)?

crawlserv commented 1 year ago

It's really hard to pinpoint. Right now it works again on every account therefore I cannot really investigate further. It might be connected to some specific condition of the server.

crawlserv commented 1 year ago

Ok, I might have found the problem:

It seems to happen when I try to edit a post by the selected account but press edit in a column that belongs to another account.

To reproduce:

  1. Use Sengi with at least two accounts (A and B) on two different server and have both their "Home" timelines shown next to each other
  2. Let these accounts follow each other
  3. Post a toot from account A and wait until it pops up in the "Home" timeline of account B
  4. With account A still selected, try to edit the toot by clicking "More" and "Edit" in the "Home" timeline of account B

Expected behavior: The edit field pops up, lets you edit the toot, and changes account A's toot after pressing "EDIT!". Actual behavior: The edit field pops up, lets you edit the toot, but displays "Record not found" after pressing "EDIT!" instead of changing account A's toot (presumably trying to find the toot under account B)

EDIT: It can also be tested with direct messages in case you don't want to spam your timeline ;) EDIT2: The accounts are on two different servers, so the "Record not found" message makes actually sense if it comes from the other server.