Update AP helpers

This commit is contained in:
Daniel Supernault 2019-07-26 23:02:13 -06:00
parent e3da7bfca3
commit 3599a47261
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
2 changed files with 4 additions and 4 deletions

View file

@ -125,7 +125,7 @@ class Helpers {
{ {
$audience = self::normalizeAudience($data); $audience = self::normalizeAudience($data);
$url = $profile->permalink(); $url = $profile->permalink();
return in_array($url, $audience); return in_array($url, $audience['to']) || in_array($url, $audience['cc']);
} }
public static function validateUrl($url) public static function validateUrl($url)

View file

@ -143,9 +143,9 @@ class Inbox
return; return;
} }
// if(Helpers::userInAudience($this->profile, $this->payload) == false) { if(Helpers::userInAudience($this->profile, $this->payload) == false) {
// return; return;
// } }
$url = $activity['id']; $url = $activity['id'];
if(Status::whereUrl($url)->exists()) { if(Status::whereUrl($url)->exists()) {