]> git.mxchange.org Git - friendica-addons.git/commitdiff
Merge branch 'master' of https://github.com/friendica/friendica-addons
authorKeith Fernie <me@keithfernie.co.uk>
Sat, 19 May 2012 18:45:53 +0000 (19:45 +0100)
committerKeith Fernie <me@keithfernie.co.uk>
Sat, 19 May 2012 18:45:53 +0000 (19:45 +0100)
facebook.tgz
facebook/facebook.php
privacy_image_cache/privacy_image_cache.php

index ca4a858c7fb022159cddbd77edff2588e7ce006c..edddbb64a6faaf36f21af834556734eea2c82bcf 100644 (file)
Binary files a/facebook.tgz and b/facebook.tgz differ
index 2c48c7aa086208533d1b7341449d6fb63c804c2e..f70524a62c77f7bcc18d9b8f8286098bfeaa0911 100644 (file)
@@ -332,6 +332,14 @@ function fb_get_friends_sync_parsecontact($uid, $contact) {
 
     $contact_id  = $r[0]['id'];
 
+       $g = q("select def_gid from user where uid = %d limit 1",
+               intval($uid)
+       );
+       if($g && intval($g[0]['def_gid'])) {
+               require_once('include/group.php');
+               group_add_member($uid,'',$contact_id,$g[0]['def_gid']);
+       }
+
     require_once("Photo.php");
 
     $photos = import_profile_photo($r[0]['photo'],$uid,$contact_id);
index 45aeb0800f179bff01f8c85174e90719c6879f78..c79439549a38d5b6804ed8304fceb666150a3258 100644 (file)
@@ -112,7 +112,7 @@ function privacy_image_cache_ping_xmlize_hook(&$a, &$o) {
  * @param App $a
  * @param null|object $b
  */
-function privacy_image_cache_cron(&$a, &$b) {
+function privacy_image_cache_cron(&$a = null, &$b = null) {
     $cachetime = get_config('privacy_image_cache','cache_time');
     if (!$cachetime) $cachetime = PRIVACY_IMAGE_CACHE_DEFAULT_TIME;
 
@@ -161,7 +161,7 @@ function privacy_image_cache_plugin_admin(&$a, &$o){
  * @param App $a
  * @param null|object $o
  */
-function privacy_image_cache_plugin_admin_post(&$a, &$o){
+function privacy_image_cache_plugin_admin_post(&$a = null, &$o = null){
     check_form_security_token_redirectOnErr('/admin/plugins/privacy_image_cache', 'picsave');
 
     if (isset($_REQUEST['save'])) {