From: Hypolite Petovan Date: Sun, 25 Nov 2018 07:16:04 +0000 (-0500) Subject: [pumpio] Update config file style/name X-Git-Tag: 2019.01~14^2~2 X-Git-Url: https://reisub.nsupdate.info/git/?a=commitdiff_plain;h=d27ac641fc2aff767064412935263aa5b5d05d0a;p=friendica-addons.git%2F.git [pumpio] Update config file style/name --- diff --git a/pumpio/README.md b/pumpio/README.md index 9fb01055..33137984 100644 --- a/pumpio/README.md +++ b/pumpio/README.md @@ -1,6 +1,11 @@ -To let the connector work properly you should define an application name in config/addon.ini.php: +To let the connector work properly you should define an application name in `config/addon.config.php`: -[pumpio] -application_name = Name of you site + 'pumpio' => [ + 'application_name' => '', + // Displays forwarded posts like "wall-to-wall" posts. + 'wall-to-wall_share' => false, + // Given in minutes + 'poll_interval' => 5, + ], This name appears at pump.io and is important for not mirroring back posts that came from Friendica. diff --git a/pumpio/config/pumpio.config.php b/pumpio/config/pumpio.config.php new file mode 100644 index 00000000..4f3dc460 --- /dev/null +++ b/pumpio/config/pumpio.config.php @@ -0,0 +1,21 @@ + [ + // application_name (String) + // To let the connector work properly you should define an application name. + // This name appears at pump.io and is important for not mirroring back posts that came from Friendica. + 'application_name' => '', + + // wall-to-wall_share (Boolean) + // Displays forwarded posts like "wall-to-wall" posts. + 'wall-to-wall_share' => false, + + // poll_interval (Integer) + // Given in minutes + 'poll_interval' => 5, + ], +]; diff --git a/pumpio/config/pumpio.ini.php b/pumpio/config/pumpio.ini.php deleted file mode 100644 index cd5e732c..00000000 --- a/pumpio/config/pumpio.ini.php +++ /dev/null @@ -1,21 +0,0 @@ -loadConfigFile(__DIR__. '/config/pumpio.ini.php'); + $a->loadConfigFile(__DIR__ . '/config/pumpio.config.php'); } function pumpio_hook_fork(App $a, array &$b)