uniquify the list of reply nicknames (DOH!)

darcs-hash:20080717164042-84dde-191bc47dc302911e4ceae0d3b1e74116bb95bcba.gz
This commit is contained in:
Evan Prodromou 2008-07-17 12:40:42 -04:00
parent 3ea1119e50
commit c51d1521f0

View File

@ -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)