mirror of
https://github.com/friendica/friendica
synced 2025-04-27 11:10:12 +00:00
Move OTYPE constants to own enum class
This commit is contained in:
parent
e42b843505
commit
97b6f6b3b3
4 changed files with 16 additions and 6 deletions
|
@ -5906,7 +5906,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue