]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
store reply_to notices as comment activity objects
authorEvan Prodromou <evan@status.net>
Mon, 7 Mar 2011 19:27:23 +0000 (14:27 -0500)
committerEvan Prodromou <evan@status.net>
Mon, 7 Mar 2011 19:27:23 +0000 (14:27 -0500)
classes/Notice.php

index 7be63b4e9f917a29676556e4187e1cbb46587d0f..d520f4728f60d98758041aae7fce74a923a497a0 100644 (file)
@@ -363,7 +363,7 @@ class Notice extends Memcached_DataObject
         }
 
         if (empty($object_type)) {
-            $notice->object_type = ActivityObject::NOTE;
+            $notice->object_type = (empty($notice->reply_to)) ? ActivityObject::NOTE : ActivityObject::COMMENT;
         } else {
             $notice->object_type = $object_type;
         }