]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fetch conversation URI in processPost, not processShare
authorMikael Nordfeldth <mmn@hethane.se>
Thu, 27 Nov 2014 15:51:21 +0000 (16:51 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Thu, 27 Nov 2014 15:51:21 +0000 (16:51 +0100)
plugins/OStatus/classes/Ostatus_profile.php

index f7d4513a870cbfffb3df01e30d3137e1d2d9a2df..96ab7f6be72ab4cef7bb78d83ec2f183ab4d5b69 100644 (file)
@@ -684,10 +684,6 @@ class Ostatus_profile extends Managed_DataObject
                     $options['reply_to'] = $orig->id;
                 }
             }
-            if (!empty($activity->context->conversation)) {
-                // we store the URI here, Notice class can look it up later
-                $options['conversation'] = $activity->context->conversation;
-            }
 
             $location = $activity->context->location;
             if ($location) {
@@ -852,6 +848,10 @@ class Ostatus_profile extends Managed_DataObject
                     $options['reply_to'] = $orig->id;
                 }
             }
+            if (!empty($activity->context->conversation)) {
+                // we store the URI here, Notice class can look it up later
+                $options['conversation'] = $activity->context->conversation;
+            }
 
             $location = $activity->context->location;
             if ($location) {