mirror of
https://github.com/friendica/friendica
synced 2025-04-27 07:50:10 +00:00
Fix webmentions and microformats ("redir" only for logged in users)
This commit is contained in:
parent
f14dae8d77
commit
9b387a226c
2 changed files with 9 additions and 2 deletions
|
@ -209,7 +209,13 @@ class Post extends BaseObject
|
|||
|
||||
$author = ['uid' => 0, 'id' => $item['author-id'],
|
||||
'network' => $item['author-network'], 'url' => $item['author-link']];
|
||||
$profile_link = Contact::magicLinkbyContact($author);
|
||||
|
||||
if (local_user()) {
|
||||
$profile_link = Contact::magicLinkbyContact($author);
|
||||
} else {
|
||||
$profile_link = $item['author-link'];
|
||||
}
|
||||
|
||||
if (strpos($profile_link, 'redir/') === 0) {
|
||||
$sparkle = ' sparkle';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue