mirror of
https://github.com/friendica/friendica
synced 2024-12-22 23:20:16 +00:00
Fix updating the thread
This commit is contained in:
parent
2b17e36a67
commit
0beec80405
1 changed files with 4 additions and 2 deletions
|
@ -1062,11 +1062,13 @@ class Item
|
|||
}
|
||||
|
||||
if ($update_commented) {
|
||||
Post::update(['commented' => DateTimeFormat::utcNow(), 'changed' => DateTimeFormat::utcNow()], ['id' => $post_user_id]);
|
||||
$fields = ['commented' => DateTimeFormat::utcNow(), 'changed' => DateTimeFormat::utcNow()];
|
||||
} else {
|
||||
Post::update(['changed' => DateTimeFormat::utcNow()], ['uri-id' => $posted_item['parent-uri-id'], 'uid' => $posted_item['uid']]);
|
||||
$fields = ['changed' => DateTimeFormat::utcNow()];
|
||||
}
|
||||
|
||||
Post::update($fields, ['uri-id' => $posted_item['parent-uri-id'], 'uid' => $posted_item['uid']]);
|
||||
|
||||
// In that function we check if this is a forum post. Additionally we delete the item under certain circumstances
|
||||
if (self::tagDeliver($posted_item['uid'], $post_user_id)) {
|
||||
// Get the user information for the logging
|
||||
|
|
Loading…
Reference in a new issue