]> git.mxchange.org Git - friendica.git/commitdiff
Fix broken dismiss endpoint on Mastodon notifications API
authorHank Grabowski <hankgrabowski@gmail.com>
Wed, 30 Nov 2022 19:11:39 +0000 (14:11 -0500)
committerHank Grabowski <hankgrabowski@gmail.com>
Wed, 30 Nov 2022 19:11:39 +0000 (14:11 -0500)
src/Module/Api/Mastodon/Notifications/Dismiss.php

index 150815d9f4c099b08a63cb8255e75cf61f39693e..5fc4e95b94827783eae1db482d4f1c5903daaa4d 100644 (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);