1
0
Fork 0

Add unsupported Friendica notification types to built query

This commit is contained in:
Hank Grabowski 2023-02-13 17:26:24 -05:00
parent 8bfca6373a
commit 7e91a88d9b

View file

@ -68,9 +68,12 @@ class Notifications extends BaseApi
$params = ['order' => ['id' => true]];
$condition = ['uid' => $uid, 'dismissed' => false];
if ($request['include_all']) {
$condition = ['uid' => $uid];
$condition = ["`uid` = ? AND (NOT `type` IN (?, ?))", $uid,
Post\UserNotification::TYPE_ACTIVITY_PARTICIPATION,
POST\UserNotification::TYPE_COMMENT_PARTICIPATION];
if (!$request['include_all']) {
$condition = DBA::mergeConditions($condition, ['dismissed' => false]);
}
if (!empty($request['account_id'])) {