Merge pull request #12303 from HankG/fix-mastodon-api-dismiss-endpoint
Fix broken dismiss endpoint on Mastodon notifications API
This commit is contained in:
commit
6b2a936f16
|
@ -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 a new issue