X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fdfrn_notify.php;h=cd67df1d7c8da9d1cbeefde0161d19c6d4390edb;hb=afa0d8ff70465e71595165a2f4fb111bac306fd2;hp=3a75123a52a88f6830bf1c2387ae10dc0cb17f5e;hpb=a7af6df962bad0901611d28450a990831fb25680;p=friendica.git diff --git a/mod/dfrn_notify.php b/mod/dfrn_notify.php index 3a75123a52..cd67df1d7c 100644 --- a/mod/dfrn_notify.php +++ b/mod/dfrn_notify.php @@ -262,10 +262,13 @@ function dfrn_notify_post(&$a) { $when = datetime_convert('UTC','UTC','now','Y-m-d H:i:s'); } if($deleted) { - $r = q("SELECT * FROM `item` WHERE `uri` = '%s' AND `uid` = %d LIMIT 1", + + $r = q("SELECT * FROM `item` WHERE `uri` = '%s' AND `uid` = %d AND `contact-id` = %d LIMIT 1", dbesc($uri), - intval($importer['importer_uid']) + intval($importer['importer_uid']), + intval($importer['id']) ); + if(count($r)) { $item = $r[0]; @@ -472,7 +475,7 @@ function dfrn_notify_post(&$a) { )); $res = mail($importer['email'], sprintf( t("%s commented on an item at %s") , $from ,$a->config['sitename']), - $email_tpl, t("From: Administrator@") . $a->get_hostname() ); + $email_tpl, "From: ".t("Administrator") . "@". $a->get_hostname() ); break; } }