projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
If no current Sone exists, return an error.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
web
/
ajax
/
MarkAsKnownAjaxPage.java
diff --git
a/src/main/java/net/pterodactylus/sone/web/ajax/MarkAsKnownAjaxPage.java
b/src/main/java/net/pterodactylus/sone/web/ajax/MarkAsKnownAjaxPage.java
index
cb5940c
..
fb602db
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/web/ajax/MarkAsKnownAjaxPage.java
+++ b/
src/main/java/net/pterodactylus/sone/web/ajax/MarkAsKnownAjaxPage.java
@@
-61,11
+61,11
@@
public class MarkAsKnownAjaxPage extends JsonPage {
}
core.markPostKnown(post.get());
} else if (type.equals("reply")) {
}
core.markPostKnown(post.get());
} else if (type.equals("reply")) {
- Optional<PostReply> reply = core.getPostReply(id);
+ Optional<PostReply> reply = core.get
Database().get
PostReply(id);
if (!reply.isPresent()) {
continue;
}
if (!reply.isPresent()) {
continue;
}
-
core.markReplyKnown(reply.get
());
+
reply.get().modify().setKnown().update(webInterface.getCore().postReplyUpdated
());
} else if (type.equals("sone")) {
Optional<Sone> sone = core.getSone(id);
if (!sone.isPresent()) {
} else if (type.equals("sone")) {
Optional<Sone> sone = core.getSone(id);
if (!sone.isPresent()) {