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
1 changed files with 2 additions and 1 deletions
|
@ -41,7 +41,8 @@ class Dismiss extends BaseApi
|
||||||
DI::mstdnError()->UnprocessableEntity();
|
DI::mstdnError()->UnprocessableEntity();
|
||||||
}
|
}
|
||||||
|
|
||||||
$Notification = DI::notification()->selectOneForUser($uid, $this->parameters['id']);
|
$condition = ['id' => $this->parameters['id']];
|
||||||
|
$Notification = DI::notification()->selectOneForUser($uid, $condition);
|
||||||
$Notification->setDismissed();
|
$Notification->setDismissed();
|
||||||
DI::notification()->save($Notification);
|
DI::notification()->save($Notification);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue