only provide notify id if otype == item

This commit is contained in:
Mario Vavti 2017-11-19 20:40:50 +01:00
parent 727b49c8ab
commit 744960d36d

View file

@ -280,7 +280,7 @@ class Ping extends \Zotlabs\Web\Controller {
'when' => relative_date($tt['created']),
'hclass' => (($tt['seen']) ? 'notify-seen' : 'notify-unseen'),
'b64mid' => $b64mid,
'notify_id' => $tt['id'],
'notify_id' => (($tt['otype'] == 'item') ? $tt['id'] : ''),
'message' => $message
);
}