]> git.mxchange.org Git - friendica.git/blobdiff - include/enotify.php
Merge pull request #764 from fabrixxm/bug729
[friendica.git] / include / enotify.php
index c41f55a5d6d55e1b1d6e1286255708463dbcf433..72365a762f983ce7c0a576aa4bf57eb9580d9428 100644 (file)
@@ -268,9 +268,15 @@ 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)