mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Update AP helpers
This commit is contained in:
parent
e3da7bfca3
commit
3599a47261
2 changed files with 4 additions and 4 deletions
|
@ -125,7 +125,7 @@ class Helpers {
|
|||
{
|
||||
$audience = self::normalizeAudience($data);
|
||||
$url = $profile->permalink();
|
||||
return in_array($url, $audience);
|
||||
return in_array($url, $audience['to']) || in_array($url, $audience['cc']);
|
||||
}
|
||||
|
||||
public static function validateUrl($url)
|
||||
|
|
|
@ -143,9 +143,9 @@ class Inbox
|
|||
return;
|
||||
}
|
||||
|
||||
// if(Helpers::userInAudience($this->profile, $this->payload) == false) {
|
||||
// return;
|
||||
// }
|
||||
if(Helpers::userInAudience($this->profile, $this->payload) == false) {
|
||||
return;
|
||||
}
|
||||
|
||||
$url = $activity['id'];
|
||||
if(Status::whereUrl($url)->exists()) {
|
||||
|
|
Loading…
Reference in a new issue