mirror of
https://github.com/friendica/friendica
synced 2025-04-27 13:10:10 +00:00
New function "isAuthenticated"
This commit is contained in:
parent
89f02a1125
commit
83b00ef308
26 changed files with 64 additions and 48 deletions
|
@ -219,7 +219,7 @@ class Post extends BaseObject
|
|||
$author = ['uid' => 0, 'id' => $item['author-id'],
|
||||
'network' => $item['author-network'], 'url' => $item['author-link']];
|
||||
|
||||
if (local_user() || remote_user()) {
|
||||
if (Session::isAuthenticated()) {
|
||||
$profile_link = Contact::magicLinkByContact($author);
|
||||
} else {
|
||||
$profile_link = $item['author-link'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue