set the post-type to "poll" for incoming poll posts
This commit is contained in:
parent
a8c6160dd7
commit
ad526f5ad2
1 changed files with 3 additions and 0 deletions
|
@ -2712,6 +2712,9 @@ class Diaspora
|
|||
|
||||
$datarray["object-type"] = Activity\ObjectType::IMAGE;
|
||||
$datarray["post-type"] = Item::PT_IMAGE;
|
||||
} elseif ($data->poll) {
|
||||
$datarray["object-type"] = Activity\ObjectType::NOTE;
|
||||
$datarray["post-type"] = Item::PT_POLL;
|
||||
} else {
|
||||
$datarray["object-type"] = Activity\ObjectType::NOTE;
|
||||
$datarray["post-type"] = Item::PT_NOTE;
|
||||
|
|
Loading…
Reference in a new issue