mirror of
https://github.com/YunoHost-Apps/pixelfed_ynh.git
synced 2024-09-03 20:06:04 +02:00
Update InboxValidator job
This commit is contained in:
parent
e89c7d8056
commit
3679332114
1 changed files with 3 additions and 3 deletions
|
@ -48,12 +48,12 @@ class InboxValidator implements ShouldQueue
|
||||||
|
|
||||||
$profile = Profile::whereNull('domain')->whereUsername($username)->first();
|
$profile = Profile::whereNull('domain')->whereUsername($username)->first();
|
||||||
|
|
||||||
if(empty($profile)) {
|
if(empty($profile) || empty($headers) || empty($payload)) {
|
||||||
return;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($profile->status != null) {
|
if($profile->status != null) {
|
||||||
return;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($this->verifySignature($headers, $profile, $payload) == true) {
|
if($this->verifySignature($headers, $profile, $payload) == true) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue