summaryrefslogtreecommitdiff
path: root/exitter.el
diff options
context:
space:
mode:
authorYuchen Pei <id@ypei.org>2025-01-28 07:36:31 +1100
committerYuchen Pei <id@ypei.org>2025-01-28 07:36:31 +1100
commit7ccd8ff06b50008ad0602c6652caebd4c4674a69 (patch)
tree4700adfdd8ee7cd51c0d55bffa7638d49ee3c5ff /exitter.el
parent36551754f548954d83af723d227dc7d14fd57d60 (diff)
fix when quoted post is a string e.g. "aaaads" rather than alistHEADmaster
Diffstat (limited to 'exitter.el')
-rw-r--r--exitter.el9
1 files changed, 8 insertions, 1 deletions
diff --git a/exitter.el b/exitter.el
index 1b976a9..13c7091 100644
--- a/exitter.el
+++ b/exitter.el
@@ -583,7 +583,14 @@ Including ancestors and descendants, if any."
(if .quoted
(format "\n\n----\n%s----"
(replace-regexp-in-string
- "^." " \\&" (exitter-format-post .quoted.post 1)))
+ "^." " \\&"
+ (if (stringp .quoted)
+ (message "Quoted post is a plain string: %s\n"
+ .quoted)
+ ;; We can't use .quoted.post here because
+ ;; for some reason it is evaluated even if
+ ;; the "if" branch is entered.
+ (exitter-format-post (alist-get 'post .quoted) 1))))
"")
.reply_count
.quote_count