📄 Update year in file headers
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / text / SoneMentionDetector.kt
index e816c8e..3e15ed3 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * Sone - SoneMentionDetector.kt - Copyright Â© 2019 David â€˜Bombe’ Roden
+ * Sone - SoneMentionDetector.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
@@ -50,7 +50,8 @@ class SoneMentionDetector @Inject constructor(private val eventBus: EventBus, pr
                                if (postReply.text.hasLinksToLocalSones()) {
                                        postReply.post
                                                        .also { mentionedPosts += it }
-                                                       .let(::MentionOfLocalSoneFoundEvent).also(eventBus::post)
+                                                       .let(::MentionOfLocalSoneFoundEvent)
+                                                       ?.also(eventBus::post)
                                }
                        }
                }