From 112dbf3abd543152ad4ed3f444331ac88c1f4c46 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 9 May 2013 18:08:00 -0700 Subject: get search page working with live-update and endless scroll, still not perfect - there may be duplicated content and possibly unauthorised content and 'timeago' not working correctly - will deal with those later, but at least you can see results. --- include/enotify.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/enotify.php') diff --git a/include/enotify.php b/include/enotify.php index 07e660191..a2b7b67b0 100644 --- a/include/enotify.php +++ b/include/enotify.php @@ -297,9 +297,16 @@ function notification($params) { $datarray['type'] = $params['type']; $datarray['verb'] = $params['verb']; $datarray['otype'] = $params['otype']; + $datarray['abort'] = false; call_hooks('enotify_store', $datarray); + if($datarray['abort']) { + pop_lang(); + return; + } + + // create notification entry in DB $r = q("insert into notify (hash,name,url,photo,date,uid,link,parent,type,verb,otype) -- cgit v1.2.3