From 1857036a994a5470aaece799d3bf07fbc863a91f Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 25 Feb 2014 20:36:56 -0800 Subject: I'll have to fix this someday. --- include/enotify.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/enotify.php b/include/enotify.php index e0991257f..036d5275e 100644 --- a/include/enotify.php +++ b/include/enotify.php @@ -384,6 +384,12 @@ function notification($params) { $itemlink = $a->get_baseurl() . '/notify/view/' . $notify_id; $msg = str_replace('$itemlink',$itemlink,$epreamble); + + // wretched hack, but we don't want to duplicate all the preamble variations and we also don't want to screw up a translation + + if(($a->language === 'en' || (! $a->language)) && strpos($msg,', ')) + $msg = substr($msg,strpos($msg,', ')+1); + $r = q("update notify set msg = '%s' where id = %d and uid = %d limit 1", dbesc($msg), intval($notify_id), -- cgit v1.2.3