mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2024-12-26 02:48:23 +01:00
Fix score on already voted comments
Fixes #12 Signed-off-by: Balazs Toldi <balazs@toldi.eu>
This commit is contained in:
parent
f2f057827a
commit
2828429120
@ -290,6 +290,8 @@ public class ParseComment {
|
||||
|
||||
int score = countsObj.getInt("score");
|
||||
int voteType = (jsonObject.isNull("my_vote")) ? 0 : jsonObject.getInt("my_vote");
|
||||
if (voteType != 0)
|
||||
score -= 1;
|
||||
boolean isSubmitter = creatorObj.getInt("id") == postObj.getInt("creator_id");
|
||||
String distinguished = commentObj.getString("distinguished");
|
||||
String permalink = commentObj.getString("ap_id");
|
||||
|
Loading…
Reference in New Issue
Block a user