From ad526f5ad20e887efde86a15b9be3088e52cdc47 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 23 Jan 2022 05:50:39 +0000 Subject: [PATCH] set the post-type to "poll" for incoming poll posts --- src/Protocol/Diaspora.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Protocol/Diaspora.php b/src/Protocol/Diaspora.php index d276814f5d..45879df2ae 100644 --- a/src/Protocol/Diaspora.php +++ b/src/Protocol/Diaspora.php @@ -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;