]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
uniquify the list of reply nicknames (DOH!)
authorEvan Prodromou <evan@prodromou.name>
Thu, 17 Jul 2008 16:40:42 +0000 (12:40 -0400)
committerEvan Prodromou <evan@prodromou.name>
Thu, 17 Jul 2008 16:40:42 +0000 (12:40 -0400)
darcs-hash:20080717164042-84dde-191bc47dc302911e4ceae0d3b1e74116bb95bcba.gz

lib/util.php

index 249c467d9017abfbe9e823b38eb5b3a163f156c8..b7226bd581c2260614e19f7e959904d975cd6ac7 100644 (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)