Update AP helpers

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

View file

@ -328,7 +328,9 @@ class Helpers {
$status->scope = $scope;
$status->visibility = $scope;
$status->save();
self::importNoteAttachment($res, $status);
if($reply_to == null) {
self::importNoteAttachment($res, $status);
}
return $status;
});

View file

@ -143,7 +143,7 @@ class Inbox
return;
}
if(Helpers::userInAudience($this->profile, $this->payload) == false) {
if($actor->followers()->count() == 0) {
return;
}