From ea4020e5184f1d330c8a56b883af223a2c953e99 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andrej=20Rama=C5=A1euski?= <andrej@x2.cz>
Date: Mon, 3 Jan 2022 19:46:13 +0100
Subject: [PATCH] Bugfix

---
 .gitlab-ci.yml             | 2 +-
 lib/CF/Controller/Posts.pm | 2 +-
 lib/CF/Controller/Users.pm | 4 ++--
 lib/CF/Helpers/Core.pm     | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d203b60..6aa73bc 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 4e41fdf..a3c78a6 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 3bf89f9..8b8bdc7 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 6a7dc73..36cbc28 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;
-- 
GitLab