From: Brion Vibber Date: Thu, 17 Mar 2011 19:13:46 +0000 (-0700) Subject: Fix reversed poll & poll response object types in ActivityStreams output X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0d30dff6d6daffcc93b1ca43bfc348d3f38572f2;p=quix0rs-gnu-social.git Fix reversed poll & poll response object types in ActivityStreams output --- diff --git a/plugins/Poll/PollPlugin.php b/plugins/Poll/PollPlugin.php index ea6ab9ecd9..941c13dd37 100644 --- a/plugins/Poll/PollPlugin.php +++ b/plugins/Poll/PollPlugin.php @@ -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();