Fix for: empty posts and comments that hadn't been transmitted to Diaspora
This commit is contained in:
parent
1e9bff88bc
commit
6b31e72905
2 changed files with 40 additions and 11 deletions
|
@ -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.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue