mirror of
https://codeberg.org/cage/tinmop/
synced 2025-01-22 03:25:41 +01:00
- used a parameter for the welcome message.
This commit is contained in:
parent
8f1f60b409
commit
482fa3079e
@ -23,6 +23,11 @@
|
||||
|
||||
(define-constant +table-id+ "welcome-minimum-id" :test #'string=)
|
||||
|
||||
(defparameter *welcome-message-template* "Hi ~s!~%Enjoy the fediverse!"
|
||||
:test #'string=
|
||||
:documentation "The welcome message, the '~s' is replaced with the display-name
|
||||
of the welcomed user")
|
||||
|
||||
(defun make-table-last-id ()
|
||||
(db-utils:query-low-level (strcat (db::prepare-table +table-id+
|
||||
:autogenerated-id-p nil)
|
||||
@ -61,7 +66,7 @@
|
||||
(loop for toot in toots do
|
||||
(let* ((account (tooter:account toot))
|
||||
(welcome-message (format nil
|
||||
"Hi ~s!~%Enjoy the fediverse!"
|
||||
*welcome-message-template*
|
||||
(tooter:display-name account)))
|
||||
(reply-id (tooter:id toot)))
|
||||
(when (and (not (tooter:bot account))
|
||||
|
Loading…
Reference in New Issue
Block a user