aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Activity.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2022-04-23 20:52:45 +0200
committerMario Vavti <mario@mariovavti.com>2022-04-23 20:52:45 +0200
commit376733bd084350bcb0854b4f6592bb0565fac018 (patch)
tree70b6a9c6d89bf107e4b818237d5b6ddb2ff30982 /Zotlabs/Lib/Activity.php
parentb2fa63f2c8f07f0677e12c655bb39a2c1d6e5444 (diff)
downloadvolse-hubzilla-376733bd084350bcb0854b4f6592bb0565fac018.tar.gz
volse-hubzilla-376733bd084350bcb0854b4f6592bb0565fac018.tar.bz2
volse-hubzilla-376733bd084350bcb0854b4f6592bb0565fac018.zip
fix regression with incoming poll answers from activitypub
Diffstat (limited to 'Zotlabs/Lib/Activity.php')
-rw-r--r--Zotlabs/Lib/Activity.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php
index 6814c2acd..9b3cab9d0 100644
--- a/Zotlabs/Lib/Activity.php
+++ b/Zotlabs/Lib/Activity.php
@@ -2834,7 +2834,7 @@ class Activity {
}
if ($p && $p[0]['obj_type'] === 'Question') {
- if ($item['obj_type'] === 'Note' && $item['title'] && (!$item['content'])) {
+ if ($item['obj_type'] === ACTIVITY_OBJ_COMMENT && $item['title'] && (!$item['body'])) {
$item['obj_type'] = 'Answer';
}
}