]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
don't overwrite replies in notices
authorEvan Prodromou <evan@controlyourself.ca>
Mon, 20 Oct 2008 17:08:28 +0000 (13:08 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Mon, 20 Oct 2008 17:08:28 +0000 (13:08 -0400)
darcs-hash:20081020170828-5ed1f-9172e6ee88e1e70bfbd6695b44bfb82eef690c4b.gz

lib/util.php

index 6e9e4533cf3e36c594bfa3bf7d93954368c48f05..0841288be1531fed8ee9c9c3273317aa9f835201 100644 (file)
@@ -1089,7 +1089,7 @@ function common_save_replies($notice) {
                if (!$recipient) {
                        continue;
                }
-               if ($i == 0 && ($recipient->id != $sender->id)) { # Don't save reply to self
+               if ($i == 0 && ($recipient->id != $sender->id) && !$notice->reply_to) { # Don't save reply to self
                        $reply_for = $recipient;
                        $recipient_notice = $reply_for->getCurrentNotice();
                        if ($recipient_notice) {