Update AP helpers

pull/1560/head
Daniel Supernault 6 years ago
parent e3da7bfca3
commit 3599a47261
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -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…
Cancel
Save