]> git.mxchange.org Git - friendica.git/commitdiff
Removed test
authorMichael Vogel <icarus@dabo.de>
Wed, 24 Jun 2015 20:51:46 +0000 (22:51 +0200)
committerMichael Vogel <icarus@dabo.de>
Wed, 24 Jun 2015 20:51:46 +0000 (22:51 +0200)
include/notifier.php

index 312d45d0625e519d60449d34435ccc72e14677e8..f5a898e89e21e943234d55bdef4cb63019bbe10d 100644 (file)
@@ -405,21 +405,6 @@ function notifier_run(&$argv, &$argc){
                        $conversant_str = dbesc(implode(', ',$conversants));
                }
 
-               // Test!
-               // Send a salmon notification to every person we mentioned in the post
-               $arr = explode(',',$target_item['tag']);
-               foreach($arr as $x) {
-                       //logger('Checking tag '.$x, LOGGER_DEBUG);
-                       $matches = null;
-                       if(preg_match('/@\[url=([^\]]*)\]/',$x,$matches)) {
-                               $probed_contact = probe_url($matches[1]);
-                               if ($probed_contact["notify"] != "") {
-                                       logger('Notify mentioned user '.$probed_contact["url"].': '.$probed_contact["notify"]);
-                                       $url_recipients[$probed_contact["notify"]] = $probed_contact["notify"];
-                               }
-                       }
-               }
-
                $r = q("SELECT * FROM `contact` WHERE `id` IN ( $conversant_str ) AND `blocked` = 0 AND `pending` = 0 AND `archive` = 0");
 
                if(count($r))