+ foreach (array_unique([$parent['author-id'], $parent['owner-id'], $parent['causer-id'], $item['author-id'], $item['owner-id'], $item['causer-id']]) as $author_id) {
+ if (empty($author_id)) {
+ continue;
+ }
+ if (Contact\User::isBlocked($author_id, $uid) || Contact\User::isIgnored($author_id, $uid) || Contact\User::isCollapsed($author_id, $uid)) {
+ Logger::debug('Author is blocked/ignored/collapsed by user', ['uid' => $uid, 'author' => $author_id, 'uri-id' => $item['uri-id']]);
+ return;
+ }
+ }
+
+ $user = User::getById($uid, ['account-type', 'account_removed', 'account_expired']);
+ if (in_array($user['account-type'], [User::ACCOUNT_TYPE_COMMUNITY, User::ACCOUNT_TYPE_RELAY])) {
+ return;
+ }
+
+ if ($user['account_removed'] || $user['account_expired']) {
+ return;
+ }
+
+ $author = Contact::getById($item['author-id'], ['contact-type']);
+ if (empty($author)) {
+ return;
+ }
+