📄 Update year in file headers
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / web / notification / LocalPostHandler.kt
index a5153ce..e7b8f05 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * Sone - NewLocalPostHandler.kt - Copyright Â© 2019 David â€˜Bombe’ Roden
+ * Sone - LocalPostHandler.kt - Copyright Â© 2019–2020 David â€˜Bombe’ Roden
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -33,9 +33,9 @@ class LocalPostHandler @Inject constructor(private val notificationManager: Noti
        fun newPostFound(newPostFoundEvent: NewPostFoundEvent) {
                newPostFoundEvent.post.onLocal { post ->
                        notification.add(post)
-               }
-               if (!notificationManager.hasFirstStartNotification()) {
-                       notificationManager.addNotification(notification)
+                       if (!notificationManager.hasFirstStartNotification()) {
+                               notificationManager.addNotification(notification)
+                       }
                }
        }