1
0
Fork 0

Fix for: empty posts and comments that hadn't been transmitted to Diaspora

This commit is contained in:
Michael 2018-06-29 06:20:04 +00:00
commit 6b31e72905
2 changed files with 40 additions and 11 deletions

View file

@ -737,7 +737,7 @@ function item_post(App $a) {
goaway($return_path);
}
$datarray = dba::selectFirst('item', [], ['id' => $post_id]);
$datarray = Item::selectFirst(Item::ITEM_FIELDLIST, ['id' => $post_id]);
if (!DBM::is_result($datarray)) {
logger("Item with id ".$post_id." couldn't be fetched.");