From: Evan Prodromou Date: Thu, 17 Jul 2008 16:40:42 +0000 (-0400) Subject: uniquify the list of reply nicknames (DOH!) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c51d1521f030cf319ece276dbce25b2408b2e81e;p=quix0rs-gnu-social.git uniquify the list of reply nicknames (DOH!) darcs-hash:20080717164042-84dde-191bc47dc302911e4ceae0d3b1e74116bb95bcba.gz --- diff --git a/lib/util.php b/lib/util.php index 249c467d90..b7226bd581 100644 --- a/lib/util.php +++ b/lib/util.php @@ -880,7 +880,7 @@ function common_save_replies($notice) { return true; } # XXX: is there another way to make an array copy? - $names = ($tname) ? array_unique(array_merge(array(strtolower($tname)), $match[1])) : $match[1]; + $names = ($tname) ? array_unique(array_merge(array(strtolower($tname)), $match[1])) : array_unique($match[1]); $sender = Profile::staticGet($notice->profile_id); # store replied only for first @ (what user/notice what the reply directed, # we assume first @ is it)