string updates

This commit is contained in:
zotlabs 2020-02-09 17:29:04 -08:00
parent 627013f77b
commit dea5e872a5
3 changed files with 1129 additions and 1098 deletions

View file

@ -2342,7 +2342,7 @@ class Activity {
}
if ($p && $p[0]['obj_type'] === 'Question') {
if ($item['obj_type'] === 'Note' && $item['title'] && (! $item['content']) && (! $item['summary'])) {
if ($item['obj_type'] === 'Note' && $item['title'] && (! $item['content'])) {
$item['obj_type'] = 'Answer';
}
}

View file

@ -1796,10 +1796,10 @@ class Libzot {
}
if ($r[0]['obj_type'] === 'Question') {
// route checking doesn't work here because we've changed the privacy
// route checking doesn't work correctly here because we've changed the privacy
$r[0]['route'] = EMPTY_STR;
// If this is a poll response, convert the obj_type to our (internal-only) "Answer" type
if ($arr['obj_type'] === 'Note' && $arr['title'] && (! $arr['content']) && (! $arr['summary'])) {
if ($arr['obj_type'] === 'Note' && $arr['title'] && (! $arr['content'])) {
$arr['obj_type'] = 'Answer';
}
}

File diff suppressed because it is too large Load diff