Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mention links overwritten when mentioning a handle where the username existing on the site #842

Closed
jeherve opened this issue Aug 8, 2024 · 8 comments
Labels
Needs triage [Type] Bug Something isn't working

Comments

@jeherve
Copy link
Member

jeherve commented Aug 8, 2024

Quick summary

ActivityPub mentions added in #213 are super handy, but they do not seem to work well when mentioning a handle where the username part of the handle is an existing user on the site.

Steps to reproduce

  1. On a site with the ActivityPub plugin installed, take note of your own username, e.g. jeremy.
  2. In a new post, mention a Fediverse user also using that username, e.g. @[email protected]
  3. Preview your post.

What you expected to happen

I would expect the ActivityPub mention to be changed into @jeremy with a link to https://mastodon.social/@jeremy.

What actually happened

The mention text remains, but a link to https://mysite.com/author/jeremy is added instead:

image

Impact

Some (< 50%)

Available workarounds?

No but the platform is still usable

Logs or notes

No response

@jeherve jeherve added [Type] Bug Something isn't working Needs triage labels Aug 8, 2024
@pfefferle
Copy link
Member

pfefferle commented Aug 13, 2024

Have you clicked the Auto-Suggestion overlay? If I simply type the full WebFinger handle without clicking anywhere else, it works like expected even if there is a local user with the same name.

Screenshot 2024-08-13 at 12 44 06 Screenshot 2024-08-13 at 12 43 06 Screenshot 2024-08-13 at 12 44 44

@jeherve
Copy link
Member Author

jeherve commented Aug 13, 2024

That doesn't seem to work that way on my site running ActivityPub + Friends + EMA:

Auto-suggestion pops, but I do not click it.

Screenshot 2024-08-13 at 13 33 13

In the editor, I see no link:

Screenshot 2024-08-13 at 13 33 22

On the frontend, a link is automatically created:

Screenshot 2024-08-13 at 13 33 41

@pfefferle
Copy link
Member

Hmmm, will try that in combination with Friends, but never had any issues so far 😳

@pfefferle
Copy link
Member

The weird thing here is, that the HTML looks like the ActivityPub one 🤔

@pfefferle
Copy link
Member

Can you maybe try to temporarily deactivate the Friends plugin to try it again?

@pfefferle
Copy link
Member

I can reproduce it in combination with the friends plugin!

/cc @akirk

@pfefferle
Copy link
Member

@jeherve @akirk maybe we should move the issue to the friends plugin?

@akirk
Copy link
Member

akirk commented Aug 23, 2024

Tracking this in akirk/friends#344

@akirk akirk closed this as completed Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs triage [Type] Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants