mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-20 05:21:27 +00:00
commit
56f5facc30
1 changed files with 4 additions and 2 deletions
|
@ -192,7 +192,7 @@ class Inbox
|
||||||
if(!isset($activity['to'])) {
|
if(!isset($activity['to'])) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$to = $activity['to'];
|
$to = isset($activity['to']) ? $activity['to'] : [];
|
||||||
$cc = isset($activity['cc']) ? $activity['cc'] : [];
|
$cc = isset($activity['cc']) ? $activity['cc'] : [];
|
||||||
|
|
||||||
if($activity['type'] == 'Question') {
|
if($activity['type'] == 'Question') {
|
||||||
|
@ -200,7 +200,9 @@ class Inbox
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(count($to) == 1 &&
|
if( is_array($to) &&
|
||||||
|
is_array($cc) &&
|
||||||
|
count($to) == 1 &&
|
||||||
count($cc) == 0 &&
|
count($cc) == 0 &&
|
||||||
parse_url($to[0], PHP_URL_HOST) == config('pixelfed.domain.app')
|
parse_url($to[0], PHP_URL_HOST) == config('pixelfed.domain.app')
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Reference in a new issue