mirror of
https://github.com/friendica/friendica
synced 2025-04-26 19:50:10 +00:00
Use magicLink whenever possible
This commit is contained in:
parent
885f2b52d1
commit
8a34895a23
23 changed files with 61 additions and 165 deletions
|
@ -868,12 +868,7 @@ class Event extends BaseObject
|
|||
$location = self::locationToArray($item['event-location']);
|
||||
|
||||
// Construct the profile link (magic-auth).
|
||||
$sp = false;
|
||||
$profile_link = best_link_url($item, $sp);
|
||||
|
||||
if (!$sp) {
|
||||
$profile_link = Profile::zrl($profile_link);
|
||||
}
|
||||
$profile_link = Contact::magicLink($item['author-link']);
|
||||
|
||||
$tpl = get_markup_template('event_stream_item.tpl');
|
||||
$return = replace_macros($tpl, [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue