Post view works now, "file" handling improved

This commit is contained in:
Michael 2021-01-14 14:45:40 +00:00
parent ca16a4892b
commit 8e12dd1658
3 changed files with 244 additions and 40 deletions

View file

@ -262,7 +262,7 @@ class Item
// We can always comment on posts from these networks
if (array_key_exists('writable', $row) &&
in_array($row['internal-network'], Protocol::FEDERATED)) {
$row['writable'] = true;
$row['writable'] = 1;
}
// ---------------------- Transform item content data ----------------------
@ -663,7 +663,7 @@ class Item
'resource-id', 'event-id', 'post-type', 'file',
'private', 'pubmail', 'moderated', 'visible', 'starred', 'bookmark',
'unseen', 'deleted', 'origin', 'forum_mode', 'mention', 'global',
'id' => 'item_id', 'network', 'icid',
'id' => 'item_id', 'network', 'icid', 'event-id',
'uri-id' => 'internal-uri-id', 'uid' => 'internal-uid',
'network' => 'internal-network', 'psid' => 'internal-psid'];
@ -703,7 +703,7 @@ class Item
'summary' => 'event-summary','desc' => 'event-desc',
'location' => 'event-location', 'type' => 'event-type',
'nofinish' => 'event-nofinish','adjust' => 'event-adjust',
'ignore' => 'event-ignore', 'id' => 'event-id'];
'ignore' => 'event-ignore'];
$fields['diaspora-interaction'] = ['interaction', 'interaction' => 'signed_text'];