mirror of
https://codeberg.org/cage/tinmop/
synced 2025-02-16 08:00:35 +01:00
- [fediverse] fixed regression: missing quoted text when replying to a messages without any mention.
This commit is contained in:
parent
45102d8dc4
commit
c182ed743e
@ -1385,19 +1385,19 @@ It an existing file path is provided the command will refuse to run."
|
||||
(lines (split-lines quoted-text))
|
||||
(quote-mark (swconf:quote-char))
|
||||
(quoted-lines (mapcar (lambda (a) (strcat quote-mark a))
|
||||
lines))
|
||||
(mentioned-users-table
|
||||
(message-rendering-utils:usernames->usernames-table quoted-text)))
|
||||
(with-open-file (stream file
|
||||
:if-exists :append
|
||||
:direction :output
|
||||
:element-type 'character)
|
||||
(format stream "~a~%" (msg-utils:add-mention-prefix reply-username))
|
||||
(loop for line in quoted-lines do
|
||||
(let ((line-fixed-mentions
|
||||
lines)))
|
||||
(let ((mentioned-users-table
|
||||
(message-rendering-utils:usernames->usernames-table quoted-text)))
|
||||
(with-open-file (stream file
|
||||
:if-exists :append
|
||||
:direction :output
|
||||
:element-type 'character)
|
||||
(format stream "~a~%" (msg-utils:add-mention-prefix reply-username))
|
||||
(loop for line in quoted-lines do
|
||||
(let ((line-fixed-mentions
|
||||
(message-rendering-utils:local-mention->acct line
|
||||
mentioned-users-table)))
|
||||
(format stream "~a~%" line-fixed-mentions)))))))
|
||||
(format stream "~a~%" line-fixed-mentions))))))))
|
||||
(add-signature (file)
|
||||
(when-let ((signature (message-rendering-utils:signature)))
|
||||
(with-open-file (stream
|
||||
|
Loading…
x
Reference in New Issue
Block a user