[#582] Optimized federation retirement by reducing the number of SQL calls
authorIvan Tashkinov <ivantashkinov@gmail.com>
Sun, 3 Feb 2019 09:41:27 +0000 (12:41 +0300)
committerIvan Tashkinov <ivantashkinov@gmail.com>
Sun, 3 Feb 2019 09:41:27 +0000 (12:41 +0300)
commitb40b4bc4e5b49ac2b35746cee7b1db92428d3ee1
tree2709ef26592aac742044db9297eeda3196d2b135
parentd5d91ae689e14103551dd3622e208ea31e40c858
[#582] Optimized federation retirement by reducing the number of SQL calls
(calling `Instances.set_reachable/1` only if instance had `unreachable_since`,
calling `Instances.set_unreachable/1` only if instance had nil `unreachable_since`).
lib/pleroma/instances/instance.ex
lib/pleroma/web/activity_pub/activity_pub.ex
lib/pleroma/web/federator/federator.ex
lib/pleroma/web/salmon/salmon.ex
lib/pleroma/web/websub/websub.ex
test/web/federator_test.exs
test/web/instances/instances_test.exs