diff options
author | Julius Härtl <jus@bitgrid.net> | 2021-07-15 09:19:38 +0200 |
---|---|---|
committer | John Molakvoæ (Rebase PR Action) <skjnldsv@users.noreply.github.com> | 2021-07-16 08:19:45 +0000 |
commit | 8ece6e064df396db08b678f42483987e917f63b7 (patch) | |
tree | 8699f46c0bfde5ebd476b4eece65d83aff7dfeb4 /lib/Service/SocialApiService.php | |
parent | d7b540c9b5b6db6b0910b1d51e27825e9f81810a (diff) |
Replace any string value with a nullable network for the fallback to match the first social service
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/Service/SocialApiService.php')
-rw-r--r-- | lib/Service/SocialApiService.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Service/SocialApiService.php b/lib/Service/SocialApiService.php index 5184d72c..129068c5 100644 --- a/lib/Service/SocialApiService.php +++ b/lib/Service/SocialApiService.php @@ -342,12 +342,12 @@ class SocialApiService { /** * Updates social profile data for all contacts of an addressbook * - * @param {String} network the social network to use (fallback: take first match) + * @param {String|null} network the social network to use (take first match if unset) * @param {String} userId the address book owner * * @returns {JSONResponse} JSONResponse with the list of changed and failed contacts */ - public function updateAddressbooks(string $network, string $userId, string $offsetBook = null, string $offsetContact = null) : JSONResponse { + public function updateAddressbooks(string $userId, string $offsetBook = null, string $offsetContact = null, string $network = null) : JSONResponse { // double check! $syncAllowedByAdmin = $this->config->getAppValue($this->appName, 'allowSocialSync', 'yes'); |