Changed parameter order for getByURL
This commit is contained in:
parent
d9c6a46ffe
commit
fc0312451d
22 changed files with 32 additions and 32 deletions
|
@ -145,7 +145,7 @@ function undo_post_tagging($s) {
|
|||
if ($cnt) {
|
||||
foreach ($matches as $mtch) {
|
||||
if (in_array($mtch[1], ['!', '@'])) {
|
||||
$contact = Contact::getByURL($mtch[2], 0, ['addr'], false);
|
||||
$contact = Contact::getByURL($mtch[2], false, ['addr']);
|
||||
$mtch[3] = empty($contact['addr']) ? $mtch[2] : $contact['addr'];
|
||||
}
|
||||
$s = str_replace($mtch[0], $mtch[1] . $mtch[3],$s);
|
||||
|
|
|
@ -107,7 +107,7 @@ function follow_content(App $a)
|
|||
}
|
||||
}
|
||||
|
||||
$contact = Contact::getByURL($url, 0, [], true);
|
||||
$contact = Contact::getByURL($url, true);
|
||||
if (empty($contact)) {
|
||||
// Possibly it is a remote item and not an account
|
||||
follow_remote_item($url);
|
||||
|
|
|
@ -102,7 +102,7 @@ function match_content(App $a)
|
|||
'follow' => [DI::l10n()->t("Connect/Follow"), $connlnk]
|
||||
];
|
||||
|
||||
$contact_details = Contact::getByURL($profile->url, 0, [], false);
|
||||
$contact_details = Contact::getByURL($profile->url, false);
|
||||
|
||||
$entry = [
|
||||
'url' => Contact::magicLink($profile->url),
|
||||
|
|
|
@ -396,7 +396,7 @@ function message_content(App $a)
|
|||
$body_e = BBCode::convert($message['body']);
|
||||
$to_name_e = $message['name'];
|
||||
|
||||
$contact = Contact::getByURL($message['from-url'], 0, ['thumb', 'addr'], false);
|
||||
$contact = Contact::getByURL($message['from-url'], false, ['thumb', 'addr']);
|
||||
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::getByURL($rr['url'], 0, ['thumb', 'addr'], false);
|
||||
$contact = Contact::getByURL($rr['url'], false, ['thumb', 'addr']);
|
||||
if (isset($contact["thumb"])) {
|
||||
$from_photo = $contact["thumb"];
|
||||
} else {
|
||||
|
|
|
@ -331,7 +331,7 @@ function ping_init(App $a)
|
|||
|
||||
if (DBA::isResult($notifs)) {
|
||||
foreach ($notifs as $notif) {
|
||||
$contact = Contact::getByURL($notif['url'], 0, ['micro'], false);
|
||||
$contact = Contact::getByURL($notif['url'], false, ['micro']);
|
||||
if (isset($contact['micro'])) {
|
||||
$notif['photo'] = ProxyUtils::proxifyUrl($contact['micro'], false, ProxyUtils::SIZE_MICRO);
|
||||
} else {
|
||||
|
|
|
@ -146,7 +146,7 @@ function unfollow_content(App $a)
|
|||
]);
|
||||
|
||||
DI::page()['aside'] = '';
|
||||
Profile::load($a, '', Contact::getByURL($contact['url'], 0, [], false));
|
||||
Profile::load($a, '', Contact::getByURL($contact['url'], false));
|
||||
|
||||
$o .= Renderer::replaceMacros(Renderer::getMarkupTemplate('section_title.tpl'), ['$title' => DI::l10n()->t('Status Messages and Posts')]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue