mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-13 11:58:48 +00:00
pumpio: Connecting to pumpio should be made much more easier
This commit is contained in:
parent
b8213b207a
commit
8e799b0216
4 changed files with 11 additions and 5 deletions
|
@ -163,6 +163,9 @@ function pumpio_connect(&$a) {
|
|||
|
||||
if($success) {
|
||||
logger("pumpio_connect: authenticated");
|
||||
|
||||
header("Location: ".$a->get_baseurl()."/settings/connectors");
|
||||
|
||||
$o .= t("You are now authenticated to pumpio.");
|
||||
$o .= '<br /><a href="'.$a->get_baseurl().'/settings/connectors">'.t("return to the connector page").'</a>';
|
||||
} else {
|
||||
|
@ -316,6 +319,8 @@ function pumpio_settings_post(&$a,&$b) {
|
|||
set_pconfig(local_user(),'pumpio','public',$_POST['pumpio_public']);
|
||||
set_pconfig(local_user(),'pumpio','mirror',$_POST['pumpio_mirror']);
|
||||
set_pconfig(local_user(),'pumpio','post_by_default',intval($_POST['pumpio_bydefault']));
|
||||
|
||||
header("Location: ".$a->get_baseurl()."/pumpio/connect");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue