Use MagicLinkbyId when possible

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

View file

@ -204,7 +204,7 @@ class Post extends BaseObject
$profile_name = $item['author-link'];
}
$profile_link = Contact::magicLink($item['author-link']);
$profile_link = Contact::magicLinkById($item['author-id']);
if (strpos($profile_link, 'redir/') === 0) {
$sparkle = ' sparkle';
}
@ -861,7 +861,7 @@ class Post extends BaseObject
$this->owner_photo = $this->getDataValue('owner-avatar');
$this->owner_name = $this->getDataValue('owner-name');
$this->wall_to_wall = true;
$this->owner_url = Contact::magicLink($this->getDataValue('owner-link'));
$this->owner_url = Contact::magicLinkById($this->getDataValue('owner-id'));
}
}
}