X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fping.php;h=64c947e2c63aa760108e3a1ccfc0a25a8cea1887;hb=7789ea25079801ee1425368e9bf2f7ce80d16d88;hp=810598a0b3e5addda5d340df66fed33a86529a41;hpb=4157db5473ad0eea4f303a989335eae11d79cf5e;p=friendica.git diff --git a/mod/ping.php b/mod/ping.php index 810598a0b3..64c947e2c6 100644 --- a/mod/ping.php +++ b/mod/ping.php @@ -1,6 +1,6 @@ $items_unseen]; Hook::callAll('network_ping', $arr); @@ -412,14 +412,14 @@ function ping_get_notifications($uid) do { $r = q( - "SELECT `notify`.*, `post-view`.`visible`, `post-view`.`deleted` - FROM `notify` LEFT JOIN `post-view` ON `post-view`.`id` = `notify`.`iid` + "SELECT `notify`.*, `post`.`visible`, `post`.`deleted` + FROM `notify` LEFT JOIN `post` ON `post`.`uri-id` = `notify`.`uri-id` WHERE `notify`.`uid` = %d AND `notify`.`msg` != '' AND NOT (`notify`.`type` IN (%d, %d)) AND $seensql `notify`.`seen` ORDER BY `notify`.`date` $order LIMIT %d, 50", intval($uid), - intval(Type::INTRO), - intval(Type::MAIL), + intval(Notification\Type::INTRO), + intval(Notification\Type::MAIL), intval($offset) ); @@ -448,7 +448,7 @@ function ping_get_notifications($uid) $notification["message"] = $notification["msg_cache"]; } else { $notification["name"] = strip_tags(BBCode::convert($notification["name"])); - $notification["message"] = Friendica\Model\Notify::formatMessage($notification["name"], strip_tags(BBCode::convert($notification["msg"]))); + $notification["message"] = Notification::formatMessage($notification["name"], strip_tags(BBCode::convert($notification["msg"]))); q( "UPDATE `notify` SET `name_cache` = '%s', `msg_cache` = '%s' WHERE `id` = %d",