mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 04:05:16 +02:00
Replaced "getDetailsByURL" with "getByURL/getByURLForUser"
This commit is contained in:
parent
869f3cfec4
commit
d9c6a46ffe
29 changed files with 78 additions and 285 deletions
|
@ -396,7 +396,7 @@ function message_content(App $a)
|
|||
$body_e = BBCode::convert($message['body']);
|
||||
$to_name_e = $message['name'];
|
||||
|
||||
$contact = Contact::getDetailsByURL($message['from-url']);
|
||||
$contact = Contact::getByURL($message['from-url'], 0, ['thumb', 'addr'], false);
|
||||
if (isset($contact["thumb"])) {
|
||||
$from_photo = $contact["thumb"];
|
||||
} else {
|
||||
|
@ -528,7 +528,7 @@ function render_messages(array $msg, $t)
|
|||
$body_e = $rr['body'];
|
||||
$to_name_e = $rr['name'];
|
||||
|
||||
$contact = Contact::getDetailsByURL($rr['url']);
|
||||
$contact = Contact::getByURL($rr['url'], 0, ['thumb', 'addr'], false);
|
||||
if (isset($contact["thumb"])) {
|
||||
$from_photo = $contact["thumb"];
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue