1
0
Fork 0

- added mention only if non-nil (when sending a status).

This commit is contained in:
cage 2020-09-24 20:49:18 +02:00
parent acf8579fc5
commit dee8b18b9c
1 changed files with 8 additions and 2 deletions

View File

@ -660,8 +660,14 @@
(let ((exceeding-characters (ui:message-exceeds-server-limit-p body)))
(if exceeding-characters
(ui:exceeding-characters-notify exceeding-characters)
(progn
(client:send-status (format nil "~a~%~a" mentions body)
(let ((actual-message-body (if mentions
(format nil
"~a~a~%~a"
+mention-prefix+
mentions
body)
body)))
(client:send-status actual-message-body
reply-to
attachments
subject