mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-11 14:14:26 +02:00
Follow/Unfollow contact with a single click
This commit is contained in:
parent
5232a8583f
commit
33575a94fa
6 changed files with 88 additions and 76 deletions
|
@ -322,9 +322,9 @@ class Profile
|
|||
}
|
||||
} elseif ($profile_is_native) {
|
||||
if ($visitor_is_following) {
|
||||
$unfollow_link = $visitor_base_path . '/unfollow?url=' . urlencode($profile_url);
|
||||
$unfollow_link = $visitor_base_path . '/unfollow?url=' . urlencode($profile_url) . '&auto=1';
|
||||
} else {
|
||||
$follow_link = $visitor_base_path .'/follow?url=' . urlencode($profile_url);
|
||||
$follow_link = $visitor_base_path .'/follow?url=' . urlencode($profile_url) . '&auto=1';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue