Automatic PHPCBF style fix
This commit is contained in:
parent
7e91a88d9b
commit
e384a9d6ca
1 changed files with 11 additions and 5 deletions
|
@ -84,15 +84,21 @@ class Notifications extends BaseApi
|
||||||
}
|
}
|
||||||
|
|
||||||
if (in_array(Notification::TYPE_INTRODUCTION, $request['exclude_types'])) {
|
if (in_array(Notification::TYPE_INTRODUCTION, $request['exclude_types'])) {
|
||||||
$condition = DBA::mergeConditions($condition,
|
$condition = DBA::mergeConditions(
|
||||||
|
$condition,
|
||||||
["(`vid` != ? OR `type` != ? OR NOT `actor-id` IN (SELECT `id` FROM `contact` WHERE `pending`))",
|
["(`vid` != ? OR `type` != ? OR NOT `actor-id` IN (SELECT `id` FROM `contact` WHERE `pending`))",
|
||||||
Verb::getID(Activity::FOLLOW), Post\UserNotification::TYPE_NONE]);
|
Verb::getID(Activity::FOLLOW),
|
||||||
|
Post\UserNotification::TYPE_NONE]
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (in_array(Notification::TYPE_FOLLOW, $request['exclude_types'])) {
|
if (in_array(Notification::TYPE_FOLLOW, $request['exclude_types'])) {
|
||||||
$condition = DBA::mergeConditions($condition,
|
$condition = DBA::mergeConditions(
|
||||||
|
$condition,
|
||||||
["(`vid` != ? OR `type` != ? OR NOT `actor-id` IN (SELECT `id` FROM `contact` WHERE NOT `pending`))",
|
["(`vid` != ? OR `type` != ? OR NOT `actor-id` IN (SELECT `id` FROM `contact` WHERE NOT `pending`))",
|
||||||
Verb::getID(Activity::FOLLOW), Post\UserNotification::TYPE_NONE]);
|
Verb::getID(Activity::FOLLOW),
|
||||||
|
Post\UserNotification::TYPE_NONE]
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (in_array(Notification::TYPE_LIKE, $request['exclude_types'])) {
|
if (in_array(Notification::TYPE_LIKE, $request['exclude_types'])) {
|
||||||
|
|
Loading…
Reference in a new issue