From: Michael Date: Sun, 23 Jan 2022 05:50:39 +0000 (+0000) Subject: set the post-type to "poll" for incoming poll posts X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ad526f5ad20e887efde86a15b9be3088e52cdc47;p=friendica.git set the post-type to "poll" for incoming poll posts --- 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;