mirror of
https://github.com/friendica/friendica
synced 2025-04-28 02:30:16 +00:00
Change called method names
- Add GlobalContact::getRandomUrl - Rename Contact::getIdForURL - Rename Diaspora::sendUnshare - Remove unused parameter $self in Contact::terminateFriendship
This commit is contained in:
parent
b92fc24ff0
commit
ec02af593d
48 changed files with 133 additions and 133 deletions
|
@ -708,7 +708,7 @@ class DFRN
|
|||
if (trim($profile["locality"].$profile["region"].$profile["country-name"]) != "") {
|
||||
$element = $doc->createElement("poco:address");
|
||||
|
||||
XML::add_element($doc, $element, "poco:formatted", formatted_location($profile));
|
||||
XML::add_element($doc, $element, "poco:formatted", Profile::formatLocation($profile));
|
||||
|
||||
if (trim($profile["locality"]) != "") {
|
||||
XML::add_element($doc, $element, "poco:locality", $profile["locality"]);
|
||||
|
@ -742,8 +742,7 @@ class DFRN
|
|||
*/
|
||||
private static function add_entry_author($doc, $element, $contact_url, $item)
|
||||
{
|
||||
|
||||
$contact = get_contact_details_by_url($contact_url, $item["uid"]);
|
||||
$contact = Contact::getDetailsByURL($contact_url, $item["uid"]);
|
||||
|
||||
$author = $doc->createElement($element);
|
||||
XML::add_element($doc, $author, "name", $contact["name"]);
|
||||
|
@ -1373,8 +1372,7 @@ class DFRN
|
|||
|
||||
if ($contact['term-date'] > NULL_DATE) {
|
||||
logger("dfrn_deliver: $url back from the dead - removing mark for death");
|
||||
include_once 'include/Contact.php';
|
||||
unmark_for_death($contact);
|
||||
Contact::unmarkForArchival($contact);
|
||||
}
|
||||
|
||||
$res = parse_xml_string($xml);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue