mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-18 04:21:27 +00:00
Update MovePipeline, add cache break params to actor and target requests
This commit is contained in:
parent
8a362c12a9
commit
d3dce6751c
1 changed files with 4 additions and 2 deletions
|
@ -98,7 +98,8 @@ class ProcessMovePipeline implements ShouldQueue
|
||||||
|
|
||||||
protected function checkTarget()
|
protected function checkTarget()
|
||||||
{
|
{
|
||||||
$res = ActivityPubFetchService::fetchRequest($this->target, true);
|
$fetchTargetUrl = $this->target.'?cb='.time();
|
||||||
|
$res = ActivityPubFetchService::fetchRequest($fetchTargetUrl, true);
|
||||||
|
|
||||||
if (! $res || ! isset($res['alsoKnownAs'])) {
|
if (! $res || ! isset($res['alsoKnownAs'])) {
|
||||||
Log::info('[AP][INBOX][MOVE] target_aka failure');
|
Log::info('[AP][INBOX][MOVE] target_aka failure');
|
||||||
|
@ -135,7 +136,8 @@ class ProcessMovePipeline implements ShouldQueue
|
||||||
|
|
||||||
protected function checkActor()
|
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'])) {
|
if (! $res || ! isset($res['movedTo']) || empty($res['movedTo'])) {
|
||||||
Log::info('[AP][INBOX][MOVE] actor_movedTo failure');
|
Log::info('[AP][INBOX][MOVE] actor_movedTo failure');
|
||||||
|
|
Loading…
Reference in a new issue