mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-25 15:03:21 +00:00
[pumpio] Update config file style/name
This commit is contained in:
parent
c5f5965148
commit
d27ac641fc
4 changed files with 30 additions and 25 deletions
|
@ -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]
|
'pumpio' => [
|
||||||
application_name = Name of you site
|
'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.
|
This name appears at pump.io and is important for not mirroring back posts that came from Friendica.
|
||||||
|
|
21
pumpio/config/pumpio.config.php
Normal file
21
pumpio/config/pumpio.config.php
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
// Warning: Don't change this file! It only holds the default config values for this addon.
|
||||||
|
// Instead overwrite these config values in config/addon.config.php in your Friendica directory
|
||||||
|
|
||||||
|
return [
|
||||||
|
'pumpio' => [
|
||||||
|
// 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,
|
||||||
|
],
|
||||||
|
];
|
|
@ -1,21 +0,0 @@
|
||||||
<?php return <<<INI
|
|
||||||
|
|
||||||
; Warning: Don't change this file! It only holds the default config values for this addon.
|
|
||||||
; Instead overwrite these config values in config/addon.ini.php in your Friendica directory
|
|
||||||
|
|
||||||
[pumpio]
|
|
||||||
; 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
|
|
||||||
|
|
||||||
INI;
|
|
||||||
//Keep this line
|
|
|
@ -380,7 +380,7 @@ function pumpio_settings_post(App $a, array &$b)
|
||||||
|
|
||||||
function pumpio_load_config(App $a)
|
function pumpio_load_config(App $a)
|
||||||
{
|
{
|
||||||
$a->loadConfigFile(__DIR__. '/config/pumpio.ini.php');
|
$a->loadConfigFile(__DIR__ . '/config/pumpio.config.php');
|
||||||
}
|
}
|
||||||
|
|
||||||
function pumpio_hook_fork(App $a, array &$b)
|
function pumpio_hook_fork(App $a, array &$b)
|
||||||
|
|
Loading…
Reference in a new issue