1
0
Fork 0

Content is now stored exclusively in item-content, connected via "icid" field

This commit is contained in:
Michael 2018-06-25 04:56:32 +00:00
commit 89fb28ae9b
4 changed files with 60 additions and 24 deletions

View file

@ -93,9 +93,9 @@ function item_post(App $a) {
if ($thr_parent || $thr_parent_uri) {
if ($thr_parent) {
$parent_item = dba::selectFirst('item', [], ['id' => $thr_parent]);
$parent_item = Item::selectFirst([], ['id' => $thr_parent]);
} elseif ($thr_parent_uri) {
$parent_item = dba::selectFirst('item', [], ['uri' => $thr_parent_uri, 'uid' => $profile_uid]);
$parent_item = Item::selectFirst([], ['uri' => $thr_parent_uri, 'uid' => $profile_uid]);
}
// if this isn't the real parent of the conversation, find it