diff options
author | Masaya Tojo <masaya@tojo.tokyo> | 2020-07-12 23:54:49 +0900 |
---|---|---|
committer | Masaya Tojo <masaya@tojo.tokyo> | 2020-07-12 23:54:49 +0900 |
commit | ca5fa17e4c21a45f1e3910fb9543c1dd26667e4f (patch) | |
tree | 5ceecc90e779e8ddb9002286e27b65e388e7d713 | |
parent | 90206f5a2305be1b5b9b907b15ac58bdd1a4e44c (diff) |
qkbox: toot: Rename from content-filter to sanitize.
-rw-r--r-- | qkbox/toot.scm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qkbox/toot.scm b/qkbox/toot.scm index e4314bd..a917bef 100644 --- a/qkbox/toot.scm +++ b/qkbox/toot.scm @@ -126,7 +126,7 @@ (define (account-to-string account) (format #f "~{~a~} <~a> (account-id: ~s)" (insert-emoji-picts (account-emojis account) - (content-filter (account-display-name account))) + (sanitize (account-display-name account))) (account-acct account) (account-id account))) @@ -161,7 +161,7 @@ "~@[~a~%~]" (and (or (not (status-spoiler-text status)) display-cw?) - (content-filter + (sanitize (status-to-content-string status))) "~{~a~%~}" (map (lambda (att) @@ -214,7 +214,7 @@ (define-public (status-content status) (assoc-ref (status-json status) "content")) -(define (content-filter x) +(define (sanitize x) (string-delete (char-set #\x202d #\x202e) x)) (define (content->sxml content) |