mirror of
https://github.com/friendica/friendica
synced 2025-04-24 11:50:10 +00:00
Merge pull request #10760 from annando/conversation-moved
The conversation functionality moved to a class
This commit is contained in:
commit
2a88262732
26 changed files with 2021 additions and 1969 deletions
|
@ -1420,11 +1420,11 @@ class Contact
|
|||
if ($thread_mode) {
|
||||
$items = Post::toArray(Post::selectForUser(local_user(), ['uri-id', 'gravity', 'parent-uri-id', 'thr-parent-id', 'author-id'], $condition, $params));
|
||||
|
||||
$o .= conversation($a, $items, 'contacts', $update, false, 'commented', local_user());
|
||||
$o .= DI::conversation()->create($items, 'contacts', $update, false, 'commented', local_user());
|
||||
} else {
|
||||
$items = Post::toArray(Post::selectForUser(local_user(), Item::DISPLAY_FIELDLIST, $condition, $params));
|
||||
|
||||
$o .= conversation($a, $items, 'contact-posts', $update);
|
||||
$o .= DI::conversation()->create($items, 'contact-posts', $update);
|
||||
}
|
||||
|
||||
if (!$update) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue