Add unsupported Friendica notification types to built query
This commit is contained in:
parent
8bfca6373a
commit
7e91a88d9b
|
@ -68,9 +68,12 @@ class Notifications extends BaseApi
|
||||||
|
|
||||||
$params = ['order' => ['id' => true]];
|
$params = ['order' => ['id' => true]];
|
||||||
|
|
||||||
$condition = ['uid' => $uid, 'dismissed' => false];
|
$condition = ["`uid` = ? AND (NOT `type` IN (?, ?))", $uid,
|
||||||
if ($request['include_all']) {
|
Post\UserNotification::TYPE_ACTIVITY_PARTICIPATION,
|
||||||
$condition = ['uid' => $uid];
|
POST\UserNotification::TYPE_COMMENT_PARTICIPATION];
|
||||||
|
|
||||||
|
if (!$request['include_all']) {
|
||||||
|
$condition = DBA::mergeConditions($condition, ['dismissed' => false]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($request['account_id'])) {
|
if (!empty($request['account_id'])) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user