chinwagsocial/app/lib
Claire be3b9f8151
Fix URI of repeat follow requests not being recorded (#15662)
* Fix URI of repeat follow requests not being recorded

In case we receive a “repeat” or “duplicate” follow request, we automatically
fast-forward the accept with the latest received Activity `id`, but we don't
record it.

In general, a “repeat” or “duplicate” follow request may happen if for some
reason (e.g. inconsistent handling of Block or Undo Accept activities, an
instance being brought back up from the dead, etc.) the local instance thought
the remote actor were following them while the remote actor thought otherwise.

In those cases, the remote instance does not know about the older Follow
activity `id`, so keeping that record serves no purpose, but knowing the most
recent one is useful if the remote implementation at some point refers to it
by `id` without inlining it.

* Add tests
2021-02-11 01:53:44 +01:00
..
activitypub Fix URI of repeat follow requests not being recorded (#15662) 2021-02-11 01:53:44 +01:00
connection_pool
nodeinfo
ostatus
proof_provider
rss
settings Use Rails' index_by where it makes sense (#15542) 2021-01-12 09:27:38 +01:00
access_token_extension.rb
activity_tracker.rb
application_extension.rb
cache_buster.rb
delivery_failure_tracker.rb
entity_cache.rb Use Rails' index_by where it makes sense (#15542) 2021-01-12 09:27:38 +01:00
exceptions.rb
extractor.rb Optimize some regex matching (#15528) 2021-01-22 10:09:08 +01:00
fast_geometry_parser.rb
fast_ip_map.rb Add IP-based rules (#14963) 2020-10-12 16:33:49 +02:00
feed_manager.rb Optimize some regex matching (#15528) 2021-01-22 10:09:08 +01:00
formatter.rb Optimize some regex matching (#15528) 2021-01-22 10:09:08 +01:00
hash_object.rb Migrate from ledermann/rails-settings to rails-settings-cached which allows global settings 2017-01-12 20:46:24 +01:00
inline_renderer.rb
language_detector.rb
potential_friendship_tracker.rb
proof_provider.rb
rate_limiter.rb
request.rb Optimize some regex matching (#15528) 2021-01-22 10:09:08 +01:00
request_pool.rb
response_with_limit.rb
rss_builder.rb
sanitize_config.rb Optimize some regex matching (#15528) 2021-01-22 10:09:08 +01:00
search_query_parser.rb
search_query_transformer.rb
sidekiq_error_handler.rb Bump rubocop from 0.86.0 to 0.88.0 (#14412) 2020-09-01 03:04:00 +02:00
spam_check.rb Use Enumerable#filter_map in more places (#15527) 2021-01-22 16:28:15 +01:00
status_filter.rb
status_finder.rb
status_reach_finder.rb
tag_manager.rb
themes.rb
toc_generator.rb Add fallback section ID with ToC (#11941) 2019-09-23 17:25:10 +02:00
user_settings_decorator.rb Add option to disable swiping motions across the WebUI (#13885) 2020-09-30 19:31:03 +02:00
webfinger.rb Use Rails' index_by where it makes sense (#15542) 2021-01-12 09:27:38 +01:00
webfinger_resource.rb