Merge pull request #11242 from annando/private-forums

Private forums are now working via AP
This commit is contained in:
Hypolite Petovan
2022-02-15 12:06:34 -05:00
committed by GitHub
17 changed files with 228 additions and 187 deletions

View File

@@ -33,6 +33,7 @@ use Friendica\Model\Contact;
use Friendica\Model\Post;
use Friendica\Model\Subscription;
use Friendica\Model\Tag;
use Friendica\Model\User;
use Friendica\Navigation\Notifications;
use Friendica\Network\HTTPException;
use Friendica\Protocol\Activity;
@@ -176,6 +177,11 @@ class UserNotification
return;
}
$user = User::getById($uid, ['account-type']);
if (in_array($user['account-type'], [User::ACCOUNT_TYPE_COMMUNITY, User::ACCOUNT_TYPE_RELAY])) {
return;
}
$notification_type = self::TYPE_NONE;
if (self::checkShared($item, $uid)) {