mirror of
https://github.com/friendica/friendica
synced 2025-04-19 05:50:10 +00:00
Issue-9358 (now for real) commenting and updating on contact now work
This commit is contained in:
parent
c184994660
commit
5998c3995e
4 changed files with 24 additions and 18 deletions
|
@ -921,7 +921,7 @@ class Contact extends BaseModule
|
|||
return $tab_str;
|
||||
}
|
||||
|
||||
private static function getConversationsHMTL($a, $contact_id, $update)
|
||||
public static function getConversationsHMTL($a, $contact_id, $update, $parent = 0)
|
||||
{
|
||||
$o = '';
|
||||
|
||||
|
@ -952,14 +952,15 @@ class Contact extends BaseModule
|
|||
if (DBA::isResult($contact)) {
|
||||
DI::page()['aside'] = '';
|
||||
|
||||
$profiledata = Model\Contact::getByURLForUser($contact['url'], local_user());
|
||||
|
||||
Model\Profile::load($a, '', $profiledata, true);
|
||||
if (!$update) {
|
||||
$profiledata = Model\Contact::getByURLForUser($contact['url'], local_user());
|
||||
Model\Profile::load($a, '', $profiledata, true);
|
||||
}
|
||||
|
||||
if ($contact['uid'] == 0) {
|
||||
$o .= Model\Contact::getPostsFromId($contact['id'], true, $update);
|
||||
$o .= Model\Contact::getPostsFromId($contact['id'], true, $update, $parent);
|
||||
} else {
|
||||
$o .= Model\Contact::getPostsFromUrl($contact['url'], true, $update);
|
||||
$o .= Model\Contact::getPostsFromUrl($contact['url'], true, $update, $parent);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue