Continue implementing anonymous read posts.

This commit is contained in:
Docile-Alligator
2026-03-04 13:58:26 -05:00
parent 290ed28aa0
commit 69f5291104

View File

@ -22,6 +22,11 @@ public class ReadPostModification {
}
readPostDao.insert(new ReadPost(username, postId, readPostType));
if (readPostType == ReadPostType.ANONYMOUS_UPVOTED_POSTS) {
readPostDao.deleteReadPost(username, postId, ReadPostType.ANONYMOUS_DOWNVOTED_POSTS);
} else if (readPostType == ReadPostType.ANONYMOUS_DOWNVOTED_POSTS) {
readPostDao.deleteReadPost(username, postId, ReadPostType.ANONYMOUS_UPVOTED_POSTS);
}
}
});
}