From dac324a63bc0e1645fb01ab56dc2dc0d1c98c9de Mon Sep 17 00:00:00 2001 From: Jakob L. Kreuze Date: Sat, 12 Aug 2023 16:40:11 -0400 Subject: [api] Identify comments based on clearnet/darknet --- haunt/jakob/utils/comments.scm | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'haunt/jakob/utils') diff --git a/haunt/jakob/utils/comments.scm b/haunt/jakob/utils/comments.scm index f38bb18..4b38fd2 100644 --- a/haunt/jakob/utils/comments.scm +++ b/haunt/jakob/utils/comments.scm @@ -110,9 +110,18 @@ `(img (@ (class "comment-source-identifier") (alt "Icon for comments posted externally and syndicated by Webmention") (src "/static/image/webmention-logo.png"))) - `(img (@ (class "comment-source-identifier") - (alt "Icon for comments posted on jakob.space") - (src "/static/image/lambda.svg")))) + (match (internal-comment-originating-network comment) + ("tor" `(img (@ (class "comment-source-identifier") + (alt "Icon for comments posted on jakob.space via Tor; +The Tor logo belongs to The Tor Project, Inc. and is licensed under the CC BY 3.0 US") + (src "/static/image/lambda.svg")))) + ("i2p" `(img (@ (class "comment-source-identifier") + (alt "Icon for comments posted on jakob.space via I2P; +The I2P logo belongs to The I2P Project, and is licensed under the CC BY 4.0") + (src "/static/image/lambda.svg")))) + (_ `(img (@ (class "comment-source-identifier") + (alt "Icon for comments posted on jakob.space") + (src "/static/image/lambda.svg")))))) (div (@ (class "p-author h-card author")) (img (@ (class "u-photo") (src ,(comment-photo comment))))) (div (@ (class "metaline")) -- cgit v1.3