From d3dce6751c03231299b354ddaf0642c4fcc5b963 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 9 Sep 2024 02:38:06 -0600 Subject: [PATCH] Update MovePipeline, add cache break params to actor and target requests --- app/Jobs/MovePipeline/ProcessMovePipeline.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Jobs/MovePipeline/ProcessMovePipeline.php b/app/Jobs/MovePipeline/ProcessMovePipeline.php index b96734f29..54997d12f 100644 --- a/app/Jobs/MovePipeline/ProcessMovePipeline.php +++ b/app/Jobs/MovePipeline/ProcessMovePipeline.php @@ -98,7 +98,8 @@ class ProcessMovePipeline implements ShouldQueue protected function checkTarget() { - $res = ActivityPubFetchService::fetchRequest($this->target, true); + $fetchTargetUrl = $this->target.'?cb='.time(); + $res = ActivityPubFetchService::fetchRequest($fetchTargetUrl, true); if (! $res || ! isset($res['alsoKnownAs'])) { Log::info('[AP][INBOX][MOVE] target_aka failure'); @@ -135,7 +136,8 @@ class ProcessMovePipeline implements ShouldQueue protected function checkActor() { - $res = ActivityPubFetchService::fetchRequest($this->activity, true); + $fetchActivityUrl = $this->activity.'?cb='.time(); + $res = ActivityPubFetchService::fetchRequest($fetchActivityUrl, true); if (! $res || ! isset($res['movedTo']) || empty($res['movedTo'])) { Log::info('[AP][INBOX][MOVE] actor_movedTo failure');