aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2023-01-04 07:20:02 +0300
committerGravatar Vitaly Takmazov2023-01-04 07:20:02 +0300
commit20cb0b8a0515c588fb9ac548b1b4c42538698a52 (patch)
tree4c2150361cbc4ad2322046d778aa968c71f62898 /src/main/java/com/juick
parent0e20ca44eee0cb2726b575aed88a495206481973 (diff)
Nodeinfo: exclude foreign comments
Diffstat (limited to 'src/main/java/com/juick')
-rw-r--r--src/main/java/com/juick/www/api/xnodeinfo2/Info.java2
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 278462b5..9811cc4c 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;