]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
don't record a reply_to for responses to self
authorEvan Prodromou <evan@prodromou.name>
Wed, 9 Jul 2008 20:39:25 +0000 (16:39 -0400)
committerEvan Prodromou <evan@prodromou.name>
Wed, 9 Jul 2008 20:39:25 +0000 (16:39 -0400)
darcs-hash:20080709203925-84dde-d494ddd0188bea229ca75391949ec2f4c6a7bdb3.gz

lib/util.php

index d529b910958d55223b1d6ab0ac3209d1fd4cc620..a9a42a3ab11bfc362656f034ec19f834bfbd1706 100644 (file)
@@ -870,7 +870,7 @@ function common_save_replies($notice) {
                if (!$recipient) {
                        continue;
                }
-               if ($i == 0) {
+               if ($i == 0 && ($recipient->id == $sender->id)) { # Don't save reply to self
                        $reply_for = $recipient;
                        $recipient_notice = $reply_for->getCurrentNotice();
                        $orig = clone($notice);