projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don’t notify for replies on posts we don’t have.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
web
/
WebInterface.java
diff --git
a/src/main/java/net/pterodactylus/sone/web/WebInterface.java
b/src/main/java/net/pterodactylus/sone/web/WebInterface.java
index
115e0c3
..
2f3f575
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/web/WebInterface.java
+++ b/
src/main/java/net/pterodactylus/sone/web/WebInterface.java
@@
-382,6
+382,9
@@
public class WebInterface implements CoreListener {
*/
@Override
public void newReplyFound(Reply reply) {
*/
@Override
public void newReplyFound(Reply reply) {
+ if (reply.getPost().getSone() == null) {
+ return;
+ }
newReplyNotification.addReply(reply);
notificationManager.addNotification(newReplyNotification);
}
newReplyNotification.addReply(reply);
notificationManager.addNotification(newReplyNotification);
}