captainepoch / husky

The most famous Pleroma client for Android.
https://husky.adol.pw
GNU General Public License v3.0
19 stars 0 forks source link

No name shown in 'replying to' section of post when using Mitra #75

Open watamelonman opened 2 months ago

watamelonman commented 2 months ago

General description of the issue

When using Husky with an account on a Mitra instance, replies do not show the target of said reply. There is only blank space next to the 'replying to' section. This blank space happens on all posts regardless of origin (e.g. whether it's from a Pleroma instance, Mastodon, Misskey, Mitra, etc.). This isn't a problem when viewing the same posts from Mitra's web UI. Screenshot_20240521-114353

Husky information

Mitra version of instance

Steps to reproduce it

Please, describe the steps to reproduce the issue:

  1. Log into Mitra instance account on Husky
  2. View any post that is a reply

Where did you get Husky from:

captainepoch commented 2 months ago

If Mitra implements the ActivityPub API as Pleroma or Mastodon does, it should show it. I'll take a look, but it's probably not Husky's fault.

silverpill commented 2 months ago

@captainepoch Sure, looks like a problem is on the Mitra side. Could you tell where data for this UI element comes from? I'd expect it to be Status.in_reply_to_id or Status.in_reply_to_account_id, but Mitra provides both, so it must be something else?

captainepoch commented 2 months ago

If it provides any of those (but I think the correct one is in_reply_to_account_id), it should show.

Nevertheless, I still have my account in your Mitra instance, so I'll take a look.

captainepoch commented 2 months ago

As far as I can see, in_reply_to_account_id is null (see attached image).

Captura de Pantalla 2024-05-28 a las 20 20 49
silverpill commented 2 months ago

Yes, but on this image in_reply_to_id is also null, so it is probably not a reply?

captainepoch commented 2 months ago

You're right about that, I made the screenshot about the wrong value. It is, indeed, with information about the account.

It seems, in the end, a Husky issue, so I'll do more research on why this is happening.

Captura de Pantalla 2024-05-28 a las 22 27 16
captainepoch commented 1 month ago

I didn't forget about this, I'm still investigating why it's happening.

captainepoch commented 3 weeks ago

Hello!

I finally detected what's the issue is here.

Pleroma and Mastodon (I globalize also their forks) include the username in the reply's response Json by the field in_reply_to_account_acct. If the user is at the same instance, it doesn't show the @stereophonic.space (as an example), and if it's not at the same instance, it does (see screenshots attached).

Mitra should do the same.

Captura de Pantalla 2024-07-10 a las 19 38 49 Captura de Pantalla 2024-07-10 a las 19 39 20
silverpill commented 3 weeks ago

I haven't found this field in Mastodon responses, but Pleroma includes pleroma.in_reply_to_account_acct and I added it too. @watamelonman said that fixed the problem, so we can close the issue now.

Thank you!

captainepoch commented 3 weeks ago

You're totally right about this, and it happens on Mastodon instances using Husky, thank you very much for noticing it.

I'll try to come up with a fix, in case you want to remove this fied, so it works for both of the backends.

Again, thank you!