mirror of
https://github.com/Docile-Alligator/Infinity-For-Reddit.git
synced 2026-04-02 21:17:41 +00:00
Continue implementing anonymous read posts.
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user