๐Ÿ› Donโ€™t show notification for remote posts
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / web / notification / LocalPostHandler.kt
index a5153ce..cd78dd0 100644 (file)
@@ -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)
+                       }
                }
        }