summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Controller/Traewelling.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-10-04 12:27:20 +0200
committerDaniel Friesel <derf@finalrewind.org>2020-10-04 12:27:20 +0200
commit562dd7ccaef9270070d142e9d6cfe8aa164e072e (patch)
tree770f4a5c9b33b1d67366f0a2ab5f0d3cf36d71fa /lib/Travelynx/Controller/Traewelling.pm
parent7ef1fe06b9968be758c1cc32f18987a71a2cb698 (diff)
add toot and tweet settings to traewelling checkin
Diffstat (limited to 'lib/Travelynx/Controller/Traewelling.pm')
-rw-r--r--lib/Travelynx/Controller/Traewelling.pm10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/Travelynx/Controller/Traewelling.pm b/lib/Travelynx/Controller/Traewelling.pm
index 78c501f..5a37b6e 100644
--- a/lib/Travelynx/Controller/Traewelling.pm
+++ b/lib/Travelynx/Controller/Traewelling.pm
@@ -76,7 +76,9 @@ sub settings {
$self->traewelling->set_sync(
uid => $uid,
push_sync => $self->param('sync_source') eq 'travelynx' ? 1 : 0,
- pull_sync => $self->param('sync_source') eq 'traewelling' ? 1 : 0
+ pull_sync => $self->param('sync_source') eq 'traewelling' ? 1 : 0,
+ toot => $self->param('toot') ? 1 : 0,
+ tweet => $self->param('tweet') ? 1 : 0,
);
$self->flash( success => 'traewelling' );
$self->redirect_to('account');
@@ -94,6 +96,12 @@ sub settings {
else {
$self->param( sync_source => 'none' );
}
+ if ( $traewelling->{data}{toot} ) {
+ $self->param( toot => 1 );
+ }
+ if ( $traewelling->{data}{tweet} ) {
+ $self->param( tweet => 1 );
+ }
$self->render(
'traewelling',