mirror of
https://github.com/friendica/friendica
synced 2025-04-22 07:10:24 +00:00
Merge pull request #12304 from HankG/add-dismissed-field-to-mastodon-notifications
Add dismissed field to mastodon notifications
This commit is contained in:
commit
1b0f7e5add
3 changed files with 10 additions and 3 deletions
|
@ -63,12 +63,16 @@ class Notifications extends BaseApi
|
|||
'exclude_types' => [], // Array of types to exclude (follow, favourite, reblog, mention, poll, follow_request)
|
||||
'account_id' => 0, // Return only notifications received from this account
|
||||
'with_muted' => false, // Pleroma extension: return activities by muted (not by blocked!) users.
|
||||
'count' => 0, // Unknown parameter
|
||||
'count' => 0,
|
||||
'include_all' => false // Include dismissed and undismissed
|
||||
], $request);
|
||||
|
||||
$params = ['order' => ['id' => true]];
|
||||
|
||||
$condition = ['uid' => $uid, 'dismissed' => false];
|
||||
if ($request['include_all']) {
|
||||
$condition = ['uid' => $uid];
|
||||
}
|
||||
|
||||
if (!empty($request['account_id'])) {
|
||||
$contact = Contact::getById($request['account_id'], ['url']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue