mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 02:15:19 +00:00
issue with poll encoding
This commit is contained in:
parent
e139698571
commit
f4ff3aea2d
1 changed files with 11 additions and 0 deletions
|
@ -681,6 +681,17 @@ class Activity {
|
|||
|
||||
$ret['type'] = $objtype;
|
||||
|
||||
if ($objtype === 'Question') {
|
||||
if ($i['obj']) {
|
||||
if (is_array($i['obj'])) {
|
||||
$ret = $i['obj'];
|
||||
}
|
||||
else {
|
||||
$ret = json_decode($i['obj'],true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* If the destination is activitypub, see if the content needs conversion to
|
||||
|
|
Loading…
Reference in a new issue