X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fapi.php;h=567e3cc439a15d393f6eac3ad775821461a15134;hb=637e38e535c0075e0db2cc2d5cf08d938b0e858f;hp=6f5120691cffe56f9e9ea9de52c763635d40b2cc;hpb=96b9619608f92d07c231ea14492c50b410f04e9f;p=friendica.git diff --git a/include/api.php b/include/api.php index 6f5120691c..567e3cc439 100644 --- a/include/api.php +++ b/include/api.php @@ -1,5 +1,22 @@ . + * * Friendica implementation of statusnet/twitter API * * @file include/api.php @@ -5906,7 +5923,7 @@ function api_friendica_notification_seen($type) $notify = DI::notify()->getByID($id); DI::notify()->setSeen(true, $notify); - if ($notify->otype === Notify::OTYPE_ITEM) { + if ($notify->otype === Notify\ObjectType::ITEM) { $item = Item::selectFirstForUser(api_user(), [], ['id' => $notify->iid, 'uid' => api_user()]); if (DBA::isResult($item)) { // we found the item, return it to the user