You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mastodon/app/services
ThibG 5d5c0f4f43 Twidere mention workaround (#5552)
* 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.
8 years ago
..
activitypub Update remote ActivityPub users when fetching their toots (#5545) 8 years ago
concerns Introduce OStatus::TagManager (#5008) 9 years ago
pubsubhubbub Fix #2672 - Connect signed PuSH subscription requests to instance domain (#4205) 9 years ago
account_search_service.rb Fix an error when a user tries to search nonexistent remote user (regression from #4275) (#4400) 9 years ago
after_block_service.rb Optimize MuteService and AfterBlockService (#2836) 9 years ago
authorize_follow_service.rb Add handling of Linked Data Signatures in payloads (#4687) 9 years ago
base_service.rb Remove unused AtomBuilderHelper (#1364) 9 years ago
batched_remove_status_service.rb Non-Serial ("Snowflake") IDs (#4801) 9 years ago
block_domain_from_account_service.rb Add buttons to block and unblock domain (#3127) 9 years ago
block_domain_service.rb Admin interface for listing, adding and removing custom emojis (#5002) 9 years ago
block_service.rb Add handling of Linked Data Signatures in payloads (#4687) 9 years ago
bootstrap_timeline_service.rb Default follows for new users (#4871) 9 years ago
fan_out_on_write_service.rb Refactor JSON templates to be generated with ActiveModelSerializers instead of Rabl (#4090) 9 years ago
favourite_service.rb Add handling of Linked Data Signatures in payloads (#4687) 9 years ago
fetch_atom_service.rb Fix regression in FetchRemoteResourceService (#5217) 9 years ago
fetch_link_card_service.rb Don't capture scheme-less URLs in the status (#5435) 8 years ago
fetch_remote_account_service.rb Validate id of ActivityPub representations (#5114) 9 years ago
fetch_remote_resource_service.rb Fix regression in FetchRemoteResourceService (#5217) 9 years ago
fetch_remote_status_service.rb Fix remote status fetching for “pure” ActivityPub WEB_ACCOUNT users (#5372) 8 years ago
follow_service.rb Default follows for new users (#4871) 9 years ago
mute_service.rb Follow up to #5172, clean up notifications after mute like after block (#5198) 9 years ago
notify_service.rb Fix #4172 - Mutes now block notifications (#4300) 9 years ago
post_status_service.rb Instantiate service classes for each call (fixes #5540) (#5543) 8 years ago
precompute_feed_service.rb Non-Serial ("Snowflake") IDs (#4801) 9 years ago
process_feed_service.rb Set snowflake IDs for backdated statuses (#5260) 9 years ago
process_hashtags_service.rb Unify the method of extracting tags (#3138) 9 years ago
process_interaction_service.rb Introduce OStatus::TagManager (#5008) 9 years ago
process_mentions_service.rb Twidere mention workaround (#5552) 8 years ago
reblog_service.rb Avoid sending some ActivityPub payloads if the receiver will get them through distribution (#4739) 9 years ago
reject_follow_service.rb Add handling of Linked Data Signatures in payloads (#4687) 9 years ago
remove_status_service.rb Non-Serial ("Snowflake") IDs (#4801) 9 years ago
resolve_remote_account_service.rb Validate id of ActivityPub representations (#5114) 9 years ago
search_service.rb Add specs (and refactor) of FetchRemoteResourceService and SearchService (#2812) 9 years ago
send_interaction_service.rb Close connection when succeeded posting (#5390) 8 years ago
subscribe_service.rb Close connection when succeeded posting (#5390) 8 years ago
suspend_account_service.rb Add ability to disable login and mark accounts as memorial (#5615) 8 years ago
unblock_domain_service.rb Allow domain blocks that only reject media without silencing or suspending (#4325) 9 years ago
unblock_service.rb Add handling of Linked Data Signatures in payloads (#4687) 9 years ago
unfavourite_service.rb Add handling of Linked Data Signatures in payloads (#4687) 9 years ago
unfollow_service.rb Make "unfollow" undo pending outgoing follow request too (#4781) 9 years ago
unmute_service.rb Fix #231 - Muting 9 years ago
unsubscribe_service.rb Close connection when succeeded posting (#5390) 8 years ago
update_account_service.rb authorize-follow-requests-after-unlocking (#4658) 9 years ago
update_remote_profile_service.rb Account deletion (#3728) 9 years ago
verify_salmon_service.rb Introduce OStatus::TagManager (#5008) 9 years ago