1
1
Fork 0

Merge pull request #12303 from HankG/fix-mastodon-api-dismiss-endpoint

Fix broken dismiss endpoint on Mastodon notifications API
This commit is contained in:
Hypolite Petovan 2022-11-30 14:31:40 -05:00 committed by GitHub
commit 6b2a936f16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);