forked from GNUsocial/gnu-social
		
	Fix reversed poll & poll response object types in ActivityStreams output
This commit is contained in:
		@@ -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();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user