mirror of
https://github.com/friendica/friendica
synced 2025-04-23 20:30:10 +00:00
"redir" is now centralized and works with the public contact
This commit is contained in:
parent
2e97cbe728
commit
ae8d7267a0
4 changed files with 107 additions and 85 deletions
|
@ -205,16 +205,9 @@ class Post extends BaseObject
|
|||
$profile_name = $item['author-link'];
|
||||
}
|
||||
|
||||
$sp = false;
|
||||
$profile_link = best_link_url($item, $sp);
|
||||
if ($profile_link === 'mailbox') {
|
||||
$profile_link = '';
|
||||
}
|
||||
|
||||
if ($sp) {
|
||||
$profile_link = Contact::magicLink($item['author-link']);
|
||||
if (strpos($profile_link, 'redir/') === 0) {
|
||||
$sparkle = ' sparkle';
|
||||
} else {
|
||||
$profile_link = Profile::zrl($profile_link);
|
||||
}
|
||||
|
||||
if (($item['network'] == NETWORK_FEED) || empty($item['author-thumb'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue