Add legacy notification endpoint for deprecated Notify entity

- Add dependencies to Notifications\Notification module class
This commit is contained in:
Hypolite Petovan 2022-03-03 09:07:37 -05:00
commit b7cee324b0
7 changed files with 112 additions and 50 deletions

View file

@ -442,7 +442,7 @@ function ping_get_notifications($uid)
DBA::update('notify', ['name_cache' => $notification["name"], 'msg_cache' => $notification["message"]], ['id' => $notification["id"]]);
}
$notification["href"] = DI::baseUrl() . "/notification/" . $notification["id"];
$notification["href"] = DI::baseUrl() . "/notify/" . $notification["id"];
if ($notification["visible"]
&& !$notification["deleted"]