<?php
+
+use Friendica\App;
+
require_once('include/NotificationsManager.php');
-function notify_init(App &$a) {
+function notify_init(App $a) {
if (! local_user()) {
return;
}
$note = $nm->getByID($a->argv[2]);
if ($note) {
$nm->setSeen($note);
-
+
// The friendica client has problems with the GUID. this is some workaround
if ($a->is_friendica_app()) {
require_once("include/items.php");
}
-function notify_content(App &$a) {
+function notify_content(App $a) {
if (! local_user()) {
return login();
}
$nm = new NotificationsManager();
-
+
$notif_tpl = get_markup_template('notifications.tpl');
$not_tpl = get_markup_template('notify.tpl');