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;
}