1
1
Fork 0

set the post-type to "poll" for incoming poll posts

This commit is contained in:
Michael 2022-01-23 05:50:39 +00:00
parent a8c6160dd7
commit ad526f5ad2

View file

@ -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;