Fix reversed poll & poll response object types in ActivityStreams output
This commit is contained in:
parent
86fcd73a84
commit
0d30dff6d6
@ -267,7 +267,7 @@ class PollPlugin extends MicroAppPlugin
|
|||||||
{
|
{
|
||||||
$object = new ActivityObject();
|
$object = new ActivityObject();
|
||||||
$object->id = $notice->uri;
|
$object->id = $notice->uri;
|
||||||
$object->type = self::POLL_OBJECT;
|
$object->type = self::POLL_RESPONSE_OBJECT;
|
||||||
$object->title = $notice->content;
|
$object->title = $notice->content;
|
||||||
$object->summary = $notice->content;
|
$object->summary = $notice->content;
|
||||||
$object->link = $notice->bestUrl();
|
$object->link = $notice->bestUrl();
|
||||||
@ -290,7 +290,7 @@ class PollPlugin extends MicroAppPlugin
|
|||||||
{
|
{
|
||||||
$object = new ActivityObject();
|
$object = new ActivityObject();
|
||||||
$object->id = $notice->uri;
|
$object->id = $notice->uri;
|
||||||
$object->type = self::POLL_RESPONSE_OBJECT;
|
$object->type = self::POLL_OBJECT;
|
||||||
$object->title = $notice->content;
|
$object->title = $notice->content;
|
||||||
$object->summary = $notice->content;
|
$object->summary = $notice->content;
|
||||||
$object->link = $notice->bestUrl();
|
$object->link = $notice->bestUrl();
|
||||||
|
Loading…
Reference in New Issue
Block a user