diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d203b60c2143d1e43163ddc9391e0903f4578b03..6aa73bcf41776a9276ff77d024c2aed2168e8065 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,7 +2,7 @@ image: docker:20.10.9 variables: DOCKER_TLS_CERTDIR: "/certs" - IMAGE_VER: 2.4.2 + IMAGE_VER: 2.5.1 services: - docker:20.10.9-dind diff --git a/lib/CF/Controller/Posts.pm b/lib/CF/Controller/Posts.pm index 4e41fdfb80470eabe9a549ecf25da1166b84d2bf..a3c78a6a1239921f37040e670898abf8af58a8c9 100644 --- a/lib/CF/Controller/Posts.pm +++ b/lib/CF/Controller/Posts.pm @@ -223,7 +223,7 @@ sub update ($c) { id => $announcement->id }); - $c->>notify('announcement_created', + $c->notify('announcement_created', $announcement->format(), ); } diff --git a/lib/CF/Controller/Users.pm b/lib/CF/Controller/Users.pm index 3bf89f95413cf61c7884a21ef5e4a1e7c01f2efb..8b8bdc70dcc8a0689a7329d116839e92e1934d9a 100644 --- a/lib/CF/Controller/Users.pm +++ b/lib/CF/Controller/Users.pm @@ -51,7 +51,7 @@ sub ban ($c){ $c->notify('announcement_created', $announcement->format(), - }); + ); $c->notify('user_banned', $c->spec_filter($user->formatted, 'User'), @@ -61,7 +61,7 @@ sub ban ($c){ $c->render(status => 204, text => ''); } -sub unban ($c){ +sub unban ($c) { my $user = $c->_get( $c->stash->{id} ) // return; my $guard = $c->schema->txn_scope_guard; diff --git a/lib/CF/Helpers/Core.pm b/lib/CF/Helpers/Core.pm index 6a7dc73a114d291f0090c18a7037fb1ce0e52c81..36cbc28e2a2ff7f7877bf3a82e72602d90a8cd00 100644 --- a/lib/CF/Helpers/Core.pm +++ b/lib/CF/Helpers/Core.pm @@ -209,7 +209,7 @@ sub register ($class, $self, $conf) { }); $self->redis->pubsub->notify( notify => $content ); - } + }); } 1;