mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Fix typos
This commit is contained in:
parent
5ad25759cc
commit
ef297f3e64
4 changed files with 9 additions and 9 deletions
|
@ -59,7 +59,7 @@ class CleanupLegacyAccountMovePipeline implements ShouldQueue
|
||||||
*/
|
*/
|
||||||
public function retryUntil(): DateTime
|
public function retryUntil(): DateTime
|
||||||
{
|
{
|
||||||
return now()->addMinutes(15);
|
return now()->addMinutes(5);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -63,7 +63,7 @@ class MoveMigrateFollowersPipeline implements ShouldQueue
|
||||||
*/
|
*/
|
||||||
public function retryUntil(): DateTime
|
public function retryUntil(): DateTime
|
||||||
{
|
{
|
||||||
return now()->addMinutes(15);
|
return now()->addMinutes(5);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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');
|
||||||
|
|
||||||
|
|
|
@ -62,7 +62,7 @@ class UnfollowLegacyAccountMovePipeline implements ShouldQueue
|
||||||
*/
|
*/
|
||||||
public function retryUntil(): DateTime
|
public function retryUntil(): DateTime
|
||||||
{
|
{
|
||||||
return now()->addMinutes(15);
|
return now()->addMinutes(5);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue