Use MagicLinkbyId when possible

This commit is contained in:
Michael 2018-06-02 08:28:01 +00:00
commit 723b5ae803
5 changed files with 13 additions and 12 deletions

View file

@ -1296,7 +1296,7 @@ function prepare_body(array &$item, $attach = false, $is_preview = false)
foreach ($matches as $mtch) {
$mime = $mtch[3];
$the_url = Contact::magicLink($item['author-link'], $mtch[1]);
$the_url = Contact::magicLinkById($item['author-id'], $mtch[1]);
if (strpos($mime, 'video') !== false) {
if (!$vhead) {