Fix capitalization of Contact::magicLinkById calls

This commit is contained in:
Hypolite Petovan 2020-12-22 01:01:43 -05:00
parent 190c41e64f
commit 2ef4972782
3 changed files with 3 additions and 3 deletions

View file

@ -762,7 +762,7 @@ function conversation_fetch_comments($thread_items, bool $pinned, array $activit
}
if (($row['gravity'] == GRAVITY_PARENT) && !empty($row['causer-id'])) {
$row['reshared'] = DI::l10n()->t('%s reshared this.', '<a href="'. htmlentities(Contact::magicLinkbyId($row['causer-id'])) .'">' . htmlentities($name) . '</a>');
$row['reshared'] = DI::l10n()->t('%s reshared this.', '<a href="'. htmlentities(Contact::magicLinkById($row['causer-id'])) .'">' . htmlentities($name) . '</a>');
}
$row['direction'] = ['direction' => 3, 'title' => (empty($row['causer-id']) ? DI::l10n()->t('Reshared') : DI::l10n()->t('Reshared by %s', $name))];
break;

View file

@ -1455,7 +1455,7 @@ function photos_content(App $a)
continue;
}
$profile_url = Contact::magicLinkbyId($item['author-id']);
$profile_url = Contact::magicLinkById($item['author-id']);
if (strpos($profile_url, 'redir/') === 0) {
$sparkle = ' sparkle';
} else {

View file

@ -2658,7 +2658,7 @@ class Contact
* @throws HTTPException\InternalServerErrorException
* @throws \ImagickException
*/
public static function magicLinkbyId($cid, $url = '')
public static function magicLinkById($cid, $url = '')
{
$contact = DBA::selectFirst('contact', ['id', 'network', 'url', 'uid'], ['id' => $cid]);