From ce603cbb49652f84cda4594e1caebcda8ab41a29 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 27 Mar 2016 23:38:35 +0200 Subject: [PATCH] And some more doc stuff --- include/diaspora.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/diaspora.php b/include/diaspora.php index d2a90fc983..3795def479 100644 --- a/include/diaspora.php +++ b/include/diaspora.php @@ -737,7 +737,7 @@ class diaspora { * @param string $handle The checked handle in the format user@domain.tld * @param bool $is_comment Is the check for a comment? * - * @return bool is posting allowed? + * @return array The contact data */ private function allowed_contact_by_handle($importer, $handle, $is_comment = false) { $contact = self::contact_by_handle($importer["uid"], $handle); @@ -931,7 +931,9 @@ class diaspora { * @param array $person The record of the person * @param int $uid The user id * - * @return array of contact id and network type + * @return array + * 'cid' => contact id + * 'network' => network type */ private function author_contact_by_url($contact, $person, $uid) {