mastodon/spec/services
Augusto Xavier 6e541e20ca Fix authorize_interaction not resolving collections from unknown accounts
Opening an interaction-authorization link for a collection hosted on a
server the instance had not encountered before failed with a "not found"
error, because resolving the remote collection only looked its owning
account up locally and gave up when that account was unknown.

The server now fetches the owning account when it is not already known
before resolving the collection, so these links work on first visit. This
completes the partial fix from #39287.

Fixes #39281.

Assisted-by: Claude Code
2026-06-15 11:43:00 -03:00
..
activitypub Fix authorize_interaction not resolving collections from unknown accounts 2026-06-15 11:43:00 -03:00
accept_notification_request_service_spec.rb Reload notifications when accepted notifications are merged (streaming only) (#31419) 2024-08-19 15:59:06 +00:00
account_search_service_spec.rb Add basic ES-enabled index/service coverage (#38097) 2026-03-09 09:31:56 +00:00
account_statuses_cleanup_service_spec.rb Reduce factory usage across spec/services area (#32098) 2024-10-04 14:11:15 +00:00
add_account_to_collection_service_spec.rb Add collection reach finder (#39346) 2026-06-09 14:22:21 +00:00
after_block_domain_from_account_service_spec.rb Undo notification permissions on individual and domain blocks (#29570) 2024-03-26 14:46:38 +00:00
after_block_service_spec.rb Remove unneeded type: :service from spec/services files (#29304) 2024-03-13 08:39:26 +00:00
after_unallow_domain_service_spec.rb Add basic coverage for AfterUnallowDomainService class (#29324) 2024-02-21 17:13:11 +00:00
app_sign_up_service_spec.rb Add DomainHelpers spec support module for DNS/MX stub (#32690) 2024-10-29 15:35:25 +00:00
appeal_service_spec.rb Add role-specific user fabricators (#33437) 2025-01-03 08:28:14 +00:00
approve_appeal_service_spec.rb Fix error when accepting appeal for sensitive posts deleted in the meantime (#32037) 2024-09-24 15:19:55 +00:00
authorize_follow_service_spec.rb Reduce factory usage across spec/services area (#32098) 2024-10-04 14:11:15 +00:00
backup_service_spec.rb Use with_index iterator in backup service (#38264) 2026-03-18 09:11:14 +00:00
batched_remove_status_service_spec.rb Reduce factory usage across spec/services area (#32098) 2024-10-04 14:11:15 +00:00
block_domain_service_spec.rb Rename jobs/attachments rspec tag names (#29762) 2024-07-08 16:01:08 +00:00
block_service_spec.rb Handle collections when blocking a user (#38827) 2026-04-28 14:49:19 +00:00
bootstrap_timeline_service_spec.rb Add email subscriptions (#38163) 2026-03-25 16:25:45 +00:00
bulk_import_row_service_spec.rb Update rubocop-rspec to version 3.6.0 (#34497) 2025-04-24 14:56:13 +00:00
bulk_import_service_spec.rb Add import for custom filters (#39256) 2026-06-11 16:32:46 +00:00
clear_domain_media_service_spec.rb Remove unneeded type: :service from spec/services files (#29304) 2024-03-13 08:39:26 +00:00
create_collection_service_spec.rb Add collection reach finder (#39346) 2026-06-09 14:22:21 +00:00
create_featured_tag_service_spec.rb Add REST API for featuring and unfeaturing a hashtag (#34489) 2025-04-25 15:12:05 +00:00
delete_account_service_spec.rb Update rubocop-rspec to version 3.6.0 (#34497) 2025-04-24 14:56:13 +00:00
delete_collection_item_service_spec.rb Add collection reach finder (#39346) 2026-06-09 14:22:21 +00:00
delete_collection_service_spec.rb Add collection reach finder (#39346) 2026-06-09 14:22:21 +00:00
dismiss_notification_request_service_spec.rb Change dismissing a notification to clear existing filtered notifications for that account (#31329) 2024-08-07 15:14:37 +00:00
fan_out_on_write_service_spec.rb Use JSON.generate call for fan out service (#38222) 2026-03-16 14:31:58 +00:00
favourite_service_spec.rb Reduce factory usage across spec/services area (#32098) 2024-10-04 14:11:15 +00:00
fetch_link_card_service_spec.rb Change fetch link card service to parse as HTML5 (#31814) 2024-09-09 10:59:42 +00:00
fetch_oembed_service_spec.rb Enable "zero monkey patching" mode in RSpec (#31614) 2024-09-04 05:12:25 +00:00
fetch_remote_status_service_spec.rb Prefer to_json over JSON.generate when simple strings in stub request (#38258) 2026-03-17 16:10:54 +00:00
fetch_resource_service_spec.rb Remove unneeded type: :service from spec/services files (#29304) 2024-03-13 08:39:26 +00:00
follow_service_spec.rb Reduce factory usage across spec/services area (#32098) 2024-10-04 14:11:15 +00:00
move_service_spec.rb Add basic coverage for MoveService class (#29301) 2024-02-23 09:59:29 +00:00
mute_service_spec.rb Rename jobs/attachments rspec tag names (#29762) 2024-07-08 16:01:08 +00:00
notify_service_spec.rb Add policy to filter notifications from bots (#38494) (#38809) 2026-06-09 12:28:53 +00:00
post_status_service_spec.rb Tag linked FeaturedCollection objects over ActivityPub (#38115) 2026-03-23 13:11:33 +00:00
precompute_feed_service_spec.rb Fix tootctl feeds build not building list timelines (#33783) 2025-01-30 09:18:46 +00:00
process_hashtags_service_spec.rb Add basic coverage for ProcessHashtagsService class (#29320) 2024-02-21 16:57:45 +00:00
process_links_service_spec.rb Resolve links to unknown remote objects when posting (#38711) 2026-06-10 15:55:27 +00:00
process_mentions_service_spec.rb Refactor ProcessMentionsService to remove save_records parameter (#38277) 2026-03-23 09:12:30 +00:00
purge_domain_service_spec.rb Remove unneeded type: :service from spec/services files (#29304) 2024-03-13 08:39:26 +00:00
reblog_service_spec.rb Use touch_all for time column updates (#33295) 2024-12-13 08:41:42 +00:00
reject_follow_service_spec.rb Reduce factory usage across spec/services area (#32098) 2024-10-04 14:11:15 +00:00
remove_domains_from_followers_service_spec.rb Add basic coverage for RemoveDomainsFromFollowersService class (#29327) 2024-02-22 10:53:38 +00:00
remove_featured_tag_service_spec.rb Add REST API for featuring and unfeaturing a hashtag (#34489) 2025-04-25 15:12:05 +00:00
remove_from_followers_service_spec.rb Reduce factory usage across spec/services area (#32098) 2024-10-04 14:11:15 +00:00
remove_status_service_spec.rb Use to_json call for raw event strings (#38215) 2026-03-16 13:55:58 +00:00
report_service_spec.rb Reduce factory usage across spec/services area (#32098) 2024-10-04 14:11:15 +00:00
resolve_account_service_spec.rb Clean up Webfinger lib spec (#38259) 2026-03-18 13:23:06 +00:00
resolve_url_service_spec.rb Remove collections feature flag (#39211) 2026-05-29 09:37:42 +00:00
revoke_collection_item_service_spec.rb Add collection reach finder (#39346) 2026-06-09 14:22:21 +00:00
revoke_quote_service_spec.rb Fix QuoteAuthorization id not being properly serialized when federating revocation (#36083) 2025-09-11 09:37:56 +00:00
search_service_spec.rb Add ability to search for a collection by URL (#38588) 2026-04-08 16:03:35 +00:00
software_update_check_service_spec.rb Prefer to_json over JSON.generate when simple strings in stub request (#38258) 2026-03-17 16:10:54 +00:00
statuses_search_service_spec.rb Add basic ES-enabled index/service coverage (#38097) 2026-03-09 09:31:56 +00:00
suspend_account_service_spec.rb Use config_for for cache buster values (#34851) 2025-05-30 11:54:25 +00:00
tag_search_service_spec.rb Add basic ES-enabled index/service coverage (#38097) 2026-03-09 09:31:56 +00:00
translate_status_service_spec.rb Translate to regional language variant (e.g. pt-BR) (#32428) 2024-10-15 13:26:20 +00:00
unallow_domain_service_spec.rb Move "limited federation mode" config to x.mastodon area (#35041) 2025-06-16 06:13:03 +00:00
unblock_domain_service_spec.rb Reduce factory usage across spec/services area (#32098) 2024-10-04 14:11:15 +00:00
unblock_service_spec.rb Reduce factory usage across spec/services area (#32098) 2024-10-04 14:11:15 +00:00
unfavourite_service_spec.rb Add basic coverage for UnfavouriteService class (#29329) 2024-02-22 10:48:42 +00:00
unfollow_service_spec.rb Fix existing posts not being removed from lists when a list member is unfollowed (#38048) 2026-03-04 11:18:28 +00:00
unmute_service_spec.rb Change lists to reflect added and removed users retroactively (#32930) 2024-11-19 10:04:12 +00:00
unsuspend_account_service_spec.rb Update rubocop-rspec to version 3.6.0 (#34497) 2025-04-24 14:56:13 +00:00
update_account_service_spec.rb Add missing_attribution boolean to preview cards (#38043) 2026-03-04 11:18:37 +00:00
update_collection_service_spec.rb Add collection reach finder (#39346) 2026-06-09 14:22:21 +00:00
update_status_service_spec.rb Tag linked FeaturedCollection objects over ActivityPub (#38115) 2026-03-23 13:11:33 +00:00
verify_link_service_spec.rb rel="me" check should be case-insenstive (#32238) 2024-11-21 14:37:25 +00:00
vote_service_spec.rb Add basic coverage for VoteService class (#29334) 2024-02-22 10:39:18 +00:00
webhook_service_spec.rb Use to_json call for webhook service (#38217) 2026-03-16 14:01:37 +00:00