]> git.mxchange.org Git - friendica-addons.git/blobdiff - fromgplus/fromgplus.php
Merge remote-tracking branch 'upstream/master'
[friendica-addons.git] / fromgplus / fromgplus.php
index ab93b04230f8ad5ad7f1a18b6414411bf6a75047..d1fac25b078a9cd670f948fdadfa1d28332b12ed 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 /**
  * Name: From GPlus
- * Description: Imports posts from a Google+ account and repeats them - not working by now
+ * Description: Imports posts from a Google+ account and repeats them
  * Version: 0.1
  * Author: Michael Vogel <ike@piratenpartei.de>
  *
  */
 
-define('FACEBOOK_DEFAULT_POLL_INTERVAL', 60); // given in minutes
+define('FROMGPLUS_DEFAULT_POLL_INTERVAL', 30); // given in minutes
 
 function fromgplus_install() {
        register_hook('plugin_settings', 'addon/fromgplus/fromgplus.php', 'fromgplus_addon_settings');
@@ -95,7 +95,7 @@ function fromgplus_cron($a,$b) {
 
 function fromgplus_post($a, $uid, $source, $body, $location) {
 
-       $uid = 2;
+       //$uid = 2;
 
        $body = trim($body);
 
@@ -351,11 +351,7 @@ function fromgplus_fetch($a, $uid) {
 
 /*
 // Test
-$test1 = array();
-$test2 = array();
 require_once("boot.php");
-require_once("include/bbcode.php");
-require_once("include/html2plain.php");
 
 if(@is_null($a)) {
         $a = new App;
@@ -368,5 +364,6 @@ if(@is_null($db)) {
         unset($db_host, $db_user, $db_pass, $db_data);
 };
 
-fromgplus_cron($a, $test2);
+$test = array();
+fromgplus_cron($a, $test);
 */