mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-01-22 12:30:46 +00:00
Merge pull request #1378 from pixelfed/frontend-ui-refactor
Frontend ui refactor
This commit is contained in:
commit
fae882704a
1 changed files with 4 additions and 3 deletions
|
@ -57,9 +57,9 @@ class InboxValidator implements ShouldQueue
|
||||||
}
|
}
|
||||||
|
|
||||||
if($this->verifySignature($headers, $profile, $payload) == true) {
|
if($this->verifySignature($headers, $profile, $payload) == true) {
|
||||||
InboxWorker::dispatch($headers, $profile, $payload);
|
InboxWorker::dispatchNow($headers, $profile, $payload)->onQueue('high');
|
||||||
} else if($this->blindKeyRotation($headers, $profile, $payload) == true) {
|
} else if($this->blindKeyRotation($headers, $profile, $payload) == true) {
|
||||||
InboxWorker::dispatch($headers, $profile, $payload);
|
InboxWorker::dispatchNow($headers, $profile, $payload)->onQueue('high');
|
||||||
} else {
|
} else {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -99,7 +99,8 @@ class InboxValidator implements ShouldQueue
|
||||||
}
|
}
|
||||||
$actor = Profile::whereKeyId($keyId)->first();
|
$actor = Profile::whereKeyId($keyId)->first();
|
||||||
if(!$actor) {
|
if(!$actor) {
|
||||||
$actor = Helpers::profileFirstOrNew($bodyDecoded['actor']);
|
$actorUrl = is_array($bodyDecoded['actor']) ? $bodyDecoded['actor'][0] : $bodyDecoded['actor'];
|
||||||
|
$actor = Helpers::profileFirstOrNew($actorUrl);
|
||||||
}
|
}
|
||||||
if(!$actor) {
|
if(!$actor) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue