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
When parsing a mention, Twidere should use server-supplied user and domain fields matching an account to build a user handle.
Actual behavior
Twidere builds the user handle from the mention text and the host part of the user's URI.
While this is the most common case, it is not mandated by Mastodon nor any of the protocols it supports.
In particular, Mastodon allows instances to be served under a different name than the user it serves (see the WEB_DOMAIN Mastodon setting).
For instance, my handle @thib@sitedethib.com is technically handled by social.sitedethib.com, thus having a https://social.sitedethib.com/users/Thib URI.
Twidere thus builds @Thib@social.sitedethib.com instead of the (server-provided) @Thib@sitedethib.com.
Steps to reproduce
Reply to a toot containing a mention to a user with WEB_DOMAIN ≠ LOCAL_DOMAIN (e.g. @thib@sitedethib.com)
Reply will be pre-filled with incorrect mention
The text was updated successfully, but these errors were encountered:
@iknownothingaboutcomputers after a quick reading of both alternatives' source code, they indeed seem to not have this issue, as they are getting mention info from Mastodon's json API instead of parsing them themselves. However, I am currently not searching for an alternative, and this is a bug in Twidere, whether that's considered of low priority or not.
Expected behavior
When parsing a mention, Twidere should use server-supplied
user
anddomain
fields matching an account to build a user handle.Actual behavior
Twidere builds the user handle from the mention text and the host part of the user's URI.
While this is the most common case, it is not mandated by Mastodon nor any of the protocols it supports.
In particular, Mastodon allows instances to be served under a different name than the user it serves (see the
WEB_DOMAIN
Mastodon setting).For instance, my handle
@thib@sitedethib.com
is technically handled bysocial.sitedethib.com
, thus having ahttps://social.sitedethib.com/users/Thib
URI.Twidere thus builds
@Thib@social.sitedethib.com
instead of the (server-provided)@Thib@sitedethib.com
.Steps to reproduce
WEB_DOMAIN
≠LOCAL_DOMAIN
(e.g.@thib@sitedethib.com
)The text was updated successfully, but these errors were encountered: