diff options
| author | Jakob L. Kreuze | 2023-08-12 16:40:11 -0400 |
|---|---|---|
| committer | Jakob L. Kreuze | 2023-08-12 16:40:11 -0400 |
| commit | dac324a63bc0e1645fb01ab56dc2dc0d1c98c9de (patch) | |
| tree | 82dc6b58d857f6c47a4cd6f57e0918ac79edd8c9 /haunt/jakob/utils | |
| parent | 802859a04fe50a9befc87e956f563c6153f43725 (diff) | |
[api] Identify comments based on clearnet/darknet
Diffstat (limited to 'haunt/jakob/utils')
| -rw-r--r-- | haunt/jakob/utils/comments.scm | 15 |
1 files changed, 12 insertions, 3 deletions
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")) |