Move /viewcontacts to /profile/{nickname}/contacts[/{type}]

- Add contact relationship filter to profile contacts page
- Include feed contacts in contacts page and contact widget
This commit is contained in:
Hypolite Petovan 2019-05-18 11:47:39 -04:00
parent e6742af65c
commit 709eba6ce3
11 changed files with 186 additions and 136 deletions

View file

@ -1515,7 +1515,7 @@ class OStatus
$author->appendChild($urls);
}
XML::addElement($doc, $author, "followers", "", ["url" => System::baseUrl()."/viewcontacts/".$owner["nick"]]);
XML::addElement($doc, $author, "followers", "", ["url" => System::baseUrl() . "/profile/" . $owner["nick"] . "/contacts/followers"]);
XML::addElement($doc, $author, "statusnet:profile_info", "", ["local_id" => $owner["uid"]]);
if ($profile["publish"]) {