]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Replies to repeats should go to the original
authorMikael Nordfeldth <mmn@hethane.se>
Wed, 4 Jun 2014 21:49:47 +0000 (23:49 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Wed, 4 Jun 2014 21:51:32 +0000 (23:51 +0200)
classes/Notice.php

index c6ae3c915517794607d102cba29d1a73c5d98052..931c561b0855a4cc073e9d8f8bb12b0a531a2942 100644 (file)
@@ -530,7 +530,13 @@ class Notice extends Managed_DataObject
                                                       $profile->nickname, $reply->id), 403);
                 }
 
-                $notice->reply_to     = $reply->id;
+                // If it's a repeat, the reply_to should be to the original
+                if (!empty($reply->repeat_of)) {
+                    $notice->reply_to = $reply->repeat_of;
+                } else {
+                    $notice->reply_to = $reply->id;
+                }
+                // But the conversation ought to be the same :)
                 $notice->conversation = $reply->conversation;
 
                 // If the original is private to a group, and notice has