Fix typos

This commit is contained in:
Daniel Supernault 2024-09-08 23:50:21 -06:00
parent 5ad25759cc
commit ef297f3e64
No known key found for this signature in database
GPG key ID: 23740873EE6F76A1
4 changed files with 9 additions and 9 deletions

View file

@ -59,7 +59,7 @@ class CleanupLegacyAccountMovePipeline implements ShouldQueue
*/ */
public function retryUntil(): DateTime public function retryUntil(): DateTime
{ {
return now()->addMinutes(15); return now()->addMinutes(5);
} }
/** /**

View file

@ -63,7 +63,7 @@ class MoveMigrateFollowersPipeline implements ShouldQueue
*/ */
public function retryUntil(): DateTime public function retryUntil(): DateTime
{ {
return now()->addMinutes(15); return now()->addMinutes(5);
} }
/** /**

View file

@ -61,7 +61,7 @@ class ProcessMovePipeline implements ShouldQueue
*/ */
public function retryUntil(): DateTime public function retryUntil(): DateTime
{ {
return now()->addMinutes(15); return now()->addMinutes(5);
} }
/** /**
@ -80,7 +80,7 @@ class ProcessMovePipeline implements ShouldQueue
if (! self::checkActor()) { if (! self::checkActor()) {
throw new Exception('Invalid actor'); throw new Exception('Invalid actor');
} }
return;
} }
protected function checkTarget() protected function checkTarget()
@ -101,7 +101,7 @@ class ProcessMovePipeline implements ShouldQueue
} }
if (is_string($res['alsoKnownAs'])) { if (is_string($res['alsoKnownAs'])) {
return self::lowerTrim($res['alsoKnownAs']) === self::lowerTrim($this->actor); return self::lowerTrim($res['alsoKnownAs']) === self::lowerTrim($this->activity);
} }
if (is_array($res['alsoKnownAs'])) { if (is_array($res['alsoKnownAs'])) {
@ -109,7 +109,7 @@ class ProcessMovePipeline implements ShouldQueue
return trim(strtolower($value)); return trim(strtolower($value));
}); });
$res = in_array($this->actor, $map); $res = in_array($this->activity, $map);
$debugMessage = $res ? '[AP][INBOX][MOVE] aka target is valid' : '[AP][INBOX][MOVE] aka target is invalid'; $debugMessage = $res ? '[AP][INBOX][MOVE] aka target is valid' : '[AP][INBOX][MOVE] aka target is invalid';
Log::info($debugMessage); Log::info($debugMessage);
@ -122,7 +122,7 @@ class ProcessMovePipeline implements ShouldQueue
protected function checkActor() protected function checkActor()
{ {
$res = ActivityPubFetchService::fetchRequest($this->actor, true); $res = ActivityPubFetchService::fetchRequest($this->activity, true);
if (! $res || ! isset($res['movedTo'])) { if (! $res || ! isset($res['movedTo'])) {
Log::info('[AP][INBOX][MOVE] actor_movedTo failure'); Log::info('[AP][INBOX][MOVE] actor_movedTo failure');
@ -130,7 +130,7 @@ class ProcessMovePipeline implements ShouldQueue
return false; return false;
} }
$res = Helpers::profileFetch($this->actor); $res = Helpers::profileFetch($this->activity);
if (! $res) { if (! $res) {
Log::info('[AP][INBOX][MOVE] actor fetch failure'); Log::info('[AP][INBOX][MOVE] actor fetch failure');

View file

@ -62,7 +62,7 @@ class UnfollowLegacyAccountMovePipeline implements ShouldQueue
*/ */
public function retryUntil(): DateTime public function retryUntil(): DateTime
{ {
return now()->addMinutes(15); return now()->addMinutes(5);
} }
/** /**