set the post-type to "poll" for incoming poll posts
This commit is contained in:
parent
a8c6160dd7
commit
ad526f5ad2
|
@ -2712,6 +2712,9 @@ class Diaspora
|
||||||
|
|
||||||
$datarray["object-type"] = Activity\ObjectType::IMAGE;
|
$datarray["object-type"] = Activity\ObjectType::IMAGE;
|
||||||
$datarray["post-type"] = Item::PT_IMAGE;
|
$datarray["post-type"] = Item::PT_IMAGE;
|
||||||
|
} elseif ($data->poll) {
|
||||||
|
$datarray["object-type"] = Activity\ObjectType::NOTE;
|
||||||
|
$datarray["post-type"] = Item::PT_POLL;
|
||||||
} else {
|
} else {
|
||||||
$datarray["object-type"] = Activity\ObjectType::NOTE;
|
$datarray["object-type"] = Activity\ObjectType::NOTE;
|
||||||
$datarray["post-type"] = Item::PT_NOTE;
|
$datarray["post-type"] = Item::PT_NOTE;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user