mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-24 19:23:41 +01:00
5d5c0f4f43
* Work around Twidere and Tootdon bug Tootdon and Twidere construct @user@domain handles from mentions in toots based solely on the mention text and account URI's domain without performing any webfinger call or retrieving account info from the Mastodon server. As a result, when a remote user has WEB_DOMAIN ≠ LOCAL_DOMAIN, Twidere and Tootdon will construct the mention as @user@WEB_DOMAIN. Now, this will usually resolve to the correct account (since the recommended configuration is to have WEB_DOMAIN perform webfinger redirections to LOCAL_DOMAIN) when processing mentions, but won't do so when displaying them (as it does not go through the whole account resolution at that time). This change rewrites mentions to the resolved account, so that displaying the mentions will work. * Use lookbehind instead of non-capturing group in MENTION_RE Indeed, substitutions with the previous regexp would erroneously eat any preceding whitespace, which would lead to concatenated mentions in the previous commit. Note that users will “lose” up to one character space per mention for their toots, as that regexp is also used to remove the domain-part of mentioned users for character counting purposes, and it also erroneously removed the preceding character if it was a space. |
||
---|---|---|
.. | ||
activitypub | ||
concerns | ||
pubsubhubbub | ||
account_search_service.rb | ||
after_block_service.rb | ||
authorize_follow_service.rb | ||
base_service.rb | ||
batched_remove_status_service.rb | ||
block_domain_from_account_service.rb | ||
block_domain_service.rb | ||
block_service.rb | ||
bootstrap_timeline_service.rb | ||
fan_out_on_write_service.rb | ||
favourite_service.rb | ||
fetch_atom_service.rb | ||
fetch_link_card_service.rb | ||
fetch_remote_account_service.rb | ||
fetch_remote_resource_service.rb | ||
fetch_remote_status_service.rb | ||
follow_service.rb | ||
mute_service.rb | ||
notify_service.rb | ||
post_status_service.rb | ||
precompute_feed_service.rb | ||
process_feed_service.rb | ||
process_hashtags_service.rb | ||
process_interaction_service.rb | ||
process_mentions_service.rb | ||
reblog_service.rb | ||
reject_follow_service.rb | ||
remove_status_service.rb | ||
resolve_remote_account_service.rb | ||
search_service.rb | ||
send_interaction_service.rb | ||
subscribe_service.rb | ||
suspend_account_service.rb | ||
unblock_domain_service.rb | ||
unblock_service.rb | ||
unfavourite_service.rb | ||
unfollow_service.rb | ||
unmute_service.rb | ||
unsubscribe_service.rb | ||
update_account_service.rb | ||
update_remote_profile_service.rb | ||
verify_salmon_service.rb |