1
0
mirror of https://codeberg.org/cage/tinmop/ synced 2024-12-18 23:22:52 +01:00

- [fediverse] scheduled checking for instance's announcement on boot.

This commit is contained in:
cage 2024-05-24 14:37:42 +02:00
parent 5745c64272
commit 3e62f6fd3b

View File

@ -67,9 +67,7 @@
(gen-scheduler-function (look-for-announcements
+announcements-check-frequency+)
(when *thread-window*
(ui:notify (_ "Looking for announcements…"))
(program-events:push-event (make-instance 'program-events:check-announcements-event))))
(%look-for-announcements))
(gen-at-boot-function purge-history
(db:purge-history))
@ -81,6 +79,14 @@
(gen-at-boot-function sync-gempub-library
(gempub:sync-library :notify t))
(defun %look-for-announcements ()
(when *thread-window*
(ui:notify (_ "Looking for announcements…"))
(program-events:push-event (make-instance 'program-events:check-announcements-event))))
(gen-at-boot-function look-for-announcement-on-boot
(%look-for-announcements))
(defun run-scheduled-events (ticks)
(when (api-pleroma:instance-pleroma-p)
(refresh-all-chats-messages ticks)
@ -91,4 +97,5 @@
(purge-gemlog-entries ticks)
(purge-history)
(refresh-gemlog-posts)
(sync-gempub-library))
(sync-gempub-library)
(look-for-announcement-on-boot))