Fix broken dismiss endpoint on Mastodon notifications API
This commit is contained in:
parent
35ca4961d2
commit
5b5c38f9ab
|
@ -41,7 +41,8 @@ class Dismiss extends BaseApi
|
|||
DI::mstdnError()->UnprocessableEntity();
|
||||
}
|
||||
|
||||
$Notification = DI::notification()->selectOneForUser($uid, $this->parameters['id']);
|
||||
$condition = ['id' => $this->parameters['id']];
|
||||
$Notification = DI::notification()->selectOneForUser($uid, $condition);
|
||||
$Notification->setDismissed();
|
||||
DI::notification()->save($Notification);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user