diff options
author | friendica <info@friendica.com> | 2012-11-29 20:46:45 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-11-29 20:46:45 -0800 |
commit | 59ea85631199c126bc74af591f63ddf6dc1b36b8 (patch) | |
tree | 21e547639a5bcc186a9104ccd6de9bfe97f8014d /include/notify.php | |
parent | dd428cf4fc1ec043eea99e8d909cc21c5e214d26 (diff) | |
download | volse-hubzilla-59ea85631199c126bc74af591f63ddf6dc1b36b8.tar.gz volse-hubzilla-59ea85631199c126bc74af591f63ddf6dc1b36b8.tar.bz2 volse-hubzilla-59ea85631199c126bc74af591f63ddf6dc1b36b8.zip |
further progress on new network/home notifications
Diffstat (limited to 'include/notify.php')
-rw-r--r-- | include/notify.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/notify.php b/include/notify.php index a551444ee..9517e06dc 100644 --- a/include/notify.php +++ b/include/notify.php @@ -5,7 +5,7 @@ function format_notification($item) { $ret = ''; -return array(); +// return array(); require_once('include/conversation.php'); @@ -28,13 +28,13 @@ return array(); // convert this logic into a json array just like the system notifications return array( - 'notify_link' => $a->get_baseurl() . '/notify/view/' . $zz['id'], - 'name' => $zz['name'], - 'url' => $zz['url'], - 'photo' => $zz['photo'], - 'when' => relative_date($zz['date']), - 'class' => (($zz['seen']) ? 'notify-seen' : 'notify-unseen'), - 'message' => strip_tags(bbcode($zz['msg'])) + 'notify_link' => z_root() . '/notify/view_item/' . $item['id'], + 'name' => $item['author']['xchan_name'], + 'url' => $item['author']['xchan_url'], + 'photo' => $item['author']['xchan_photo_s'], + 'when' => relative_date($item['created']), + 'class' => (($item['item_flags'] & ITEM_UNSEEN) ? 'notify-unseen' : 'notify-seen'), + 'message' => strip_tags(bbcode($itemem_text)) ); } |