mirror of
https://github.com/friendica/friendica
synced 2025-04-24 23:10:11 +00:00
Rework Profile::sidebar profile link conditions
- Now show Follow, Unfollow, Atom Feed and Message in profile sidebar more consistently with the status of the current visitor - Remove pseudo-field contact.remoteconnect
This commit is contained in:
parent
61c79ce9ee
commit
3aebb92cf3
9 changed files with 150 additions and 175 deletions
|
@ -944,10 +944,6 @@ class Contact extends BaseModule
|
|||
|
||||
$profiledata = Model\Contact::getDetailsByURL($contact['url']);
|
||||
|
||||
if (local_user() && in_array($profiledata['network'], [Protocol::ACTIVITYPUB, Protocol::DFRN, Protocol::DIASPORA, Protocol::OSTATUS])) {
|
||||
$profiledata['remoteconnect'] = System::baseUrl() . '/follow?url=' . urlencode($profiledata['url']);
|
||||
}
|
||||
|
||||
Model\Profile::load($a, '', 0, $profiledata, true);
|
||||
$o .= Model\Contact::getPostsFromUrl($contact['url'], true, $update);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue