aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus@rgdd.se>2023-04-02 22:25:44 +0200
committerRasmus Dahlberg <rasmus@rgdd.se>2023-04-02 22:25:44 +0200
commit0747be386279456668ba8be161a3db8c189abecc (patch)
tree05e3f1cfff91c9d79b04d7fc728ac2111c1d5ed6 /internal
parent8335ffb747348d2f5bbf7986fa9f0fb48c3690b6 (diff)
Use OnionLocation() method
Diffstat (limited to 'internal')
-rw-r--r--internal/qna/qna.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/qna/qna.go b/internal/qna/qna.go
index eab4b71..c20c78f 100644
--- a/internal/qna/qna.go
+++ b/internal/qna/qna.go
@@ -136,7 +136,7 @@ func (p *Progress) AddAnswer(a Answer) {
return
}
p.NumOK++
- if a.HTTP != "" || a.HTML != "" {
+ if a.OnionLocation() {
p.NumOnion++
}
}