projects
/
friendica.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8c6160
)
set the post-type to "poll" for incoming poll posts
author
Michael
<heluecht@pirati.ca>
Sun, 23 Jan 2022 05:50:39 +0000
(
05:50
+0000)
committer
Michael
<heluecht@pirati.ca>
Sun, 23 Jan 2022 05:50:39 +0000
(
05:50
+0000)
src/Protocol/Diaspora.php
patch
|
blob
|
history
diff --git
a/src/Protocol/Diaspora.php
b/src/Protocol/Diaspora.php
index d276814f5d3e21a17055d14bfd8198c5be77ec58..45879df2aef340a08a4ccfc8afa022ac79be35a5 100644
(file)
--- 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;