From ba20913c2b1fde5fdc9a25e5efa0c1d3a55d74c4 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 8 Jan 2013 02:49:08 -0800 Subject: lots of notification tweaks --- include/enotify.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/enotify.php b/include/enotify.php index 140baf104..0e83adf08 100644 --- a/include/enotify.php +++ b/include/enotify.php @@ -324,11 +324,11 @@ function notification($params) { } $itemlink = $a->get_baseurl() . '/notify/view/' . $notify_id; - $msg = replace_macros($epreamble,array('$itemlink' => $itemlink)); + $msg = str_replace('$itemlink',$itemlink,$epreamble); $r = q("update notify set msg = '%s' where id = %d and uid = %d limit 1", dbesc($msg), intval($notify_id), - intval($params['uid']) + intval($datarray['uid']) ); @@ -345,7 +345,7 @@ function notification($params) { $r = q("select `id` from `notify-threads` where `master-parent-item` = %d and `receiver-uid` = %d limit 1", intval($params['parent']), - intval($params['uid']) ); + intval($datarray['uid']) ); // If so, create the record of it and use a message-id smtp header. -- cgit v1.2.3