diff options
author | Vitaly Takmazov | 2023-01-04 07:20:02 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-04 07:20:02 +0300 |
commit | 20cb0b8a0515c588fb9ac548b1b4c42538698a52 (patch) | |
tree | 4c2150361cbc4ad2322046d778aa968c71f62898 /src/main/java/com | |
parent | 0e20ca44eee0cb2726b575aed88a495206481973 (diff) |
Nodeinfo: exclude foreign comments
Diffstat (limited to 'src/main/java/com')
-rw-r--r-- | src/main/java/com/juick/www/api/xnodeinfo2/Info.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/www/api/xnodeinfo2/Info.java b/src/main/java/com/juick/www/api/xnodeinfo2/Info.java index 278462b5e..9811cc4c3 100644 --- a/src/main/java/com/juick/www/api/xnodeinfo2/Info.java +++ b/src/main/java/com/juick/www/api/xnodeinfo2/Info.java @@ -71,7 +71,7 @@ public class Info { usage.setUsers(userStats); usage.setLocalPosts(jdbcTemplate.queryForObject("SELECT COUNT(*) FROM messages", Integer.class)); - usage.setLocalComments(jdbcTemplate.queryForObject("SELECT COUNT(*) FROM replies", + usage.setLocalComments(jdbcTemplate.queryForObject("SELECT COUNT(*) FROM replies WHERE reply_uri IS NULL", Integer.class)); nodeInfo.setUsage(usage); return nodeInfo; |