Browse Source

Merge pull request #4274 from annando/signature-atuff

Bugfix: The Diaspora signature wasn't stored by nested comments
pull/4275/head
Hypolite Petovan 3 years ago
committed by GitHub
parent
commit
271f0629f0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 1 deletions
  1. +11
    -1
      mod/item.php

+ 11
- 1
mod/item.php View File

@ -836,7 +836,17 @@ function item_post(App $a) {
$post_id = item_store($datarray);
$datarray["id"] = $post_id;
if (!$post_id) {
logger("Item wasn't stored.");
goaway($return_path);
}
$datarray = dba::selectFirst('item', [], ['id' => $post_id]);
if (!DBM::is_result($datarray)) {
logger("Item with id ".$post_id." couldn't be fetched.");
goaway($return_path);
}
// update filetags in pconfig
file_tag_update_pconfig($uid, $categories_old, $categories_new, 'category');


Loading…
Cancel
Save