]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix reversed poll & poll response object types in ActivityStreams output
authorBrion Vibber <brion@pobox.com>
Thu, 17 Mar 2011 19:13:46 +0000 (12:13 -0700)
committerBrion Vibber <brion@pobox.com>
Thu, 17 Mar 2011 19:13:46 +0000 (12:13 -0700)
plugins/Poll/PollPlugin.php

index ea6ab9ecd99170a13eeee02191748454975162e5..941c13dd37d42b5388884105d6debf296a2af239 100644 (file)
@@ -267,7 +267,7 @@ class PollPlugin extends MicroAppPlugin
     {
         $object = new ActivityObject();
         $object->id      = $notice->uri;
-        $object->type    = self::POLL_OBJECT;
+        $object->type    = self::POLL_RESPONSE_OBJECT;
         $object->title   = $notice->content;
         $object->summary = $notice->content;
         $object->link    = $notice->bestUrl();
@@ -290,7 +290,7 @@ class PollPlugin extends MicroAppPlugin
     {
         $object = new ActivityObject();
         $object->id      = $notice->uri;
-        $object->type    = self::POLL_RESPONSE_OBJECT;
+        $object->type    = self::POLL_OBJECT;
         $object->title   = $notice->content;
         $object->summary = $notice->content;
         $object->link    = $notice->bestUrl();