projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
๐ Donโt show notification for remote posts
[Sone.git]
/
src
/
main
/
kotlin
/
net
/
pterodactylus
/
sone
/
web
/
notification
/
LocalPostHandler.kt
diff --git
a/src/main/kotlin/net/pterodactylus/sone/web/notification/LocalPostHandler.kt
b/src/main/kotlin/net/pterodactylus/sone/web/notification/LocalPostHandler.kt
index
a5153ce
..
cd78dd0
100644
(file)
--- a/
src/main/kotlin/net/pterodactylus/sone/web/notification/LocalPostHandler.kt
+++ b/
src/main/kotlin/net/pterodactylus/sone/web/notification/LocalPostHandler.kt
@@
-33,9
+33,9
@@
class LocalPostHandler @Inject constructor(private val notificationManager: Noti
fun newPostFound(newPostFoundEvent: NewPostFoundEvent) {
newPostFoundEvent.post.onLocal { post ->
notification.add(post)
fun newPostFound(newPostFoundEvent: NewPostFoundEvent) {
newPostFoundEvent.post.onLocal { post ->
notification.add(post)
- }
- if (!notificationManager.hasFirstStartNotification()) {
- notificationManager.addNotification(notification)
+ if (!notificationManager.hasFirstStartNotification()) {
+ notificationManager.addNotification(notification)
+ }
}
}
}
}