projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
🔀 Merge branch 'master' into next
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
notify
/
PostVisibilityFilter.java
diff --git
a/src/main/java/net/pterodactylus/sone/notify/PostVisibilityFilter.java
b/src/main/java/net/pterodactylus/sone/notify/PostVisibilityFilter.java
index
edcd148
..
d29d537
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/notify/PostVisibilityFilter.java
+++ b/
src/main/java/net/pterodactylus/sone/notify/PostVisibilityFilter.java
@@
-16,8
+16,6
@@
import com.google.common.base.Predicate;
/**
* Filters {@link Notification}s involving {@link Post}s.
/**
* Filters {@link Notification}s involving {@link Post}s.
- *
- * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
@Singleton
public class PostVisibilityFilter {
*/
@Singleton
public class PostVisibilityFilter {
@@
-87,10
+85,9
@@
public class PostVisibilityFilter {
@Nonnull
public Predicate<Post> isVisible(@Nullable final Sone currentSone) {
return new Predicate<Post>() {
@Nonnull
public Predicate<Post> isVisible(@Nullable final Sone currentSone) {
return new Predicate<Post>() {
- @Nonnull
@Override
public boolean apply(@Nullable Post post) {
@Override
public boolean apply(@Nullable Post post) {
- return isPostVisible(currentSone, post);
+ return
(post != null) &&
isPostVisible(currentSone, post);
}
};
}
}
};
}