File tree 5 files changed +28
-14
lines changed
5 files changed +28
-14
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,10 @@ post-allowed-language = ".*"
45
45
# (default 'no', change to 'yes' if desired)
46
46
start.update.gemlog = no
47
47
48
+ # delete mentions fetched from the server
49
+
50
+ delete.fetched.mentions = yes
51
+
48
52
# directory to scan for gempub files, default the same as
49
53
# $XDG_DATA_HOME (usually something like %HOME/.local/share/tinmop/").
50
54
Original file line number Diff line number Diff line change @@ -756,7 +756,6 @@ the latest 15 mentions)."
756
756
mentions-so-far))
757
757
758
758
(defun update-mentions-folder (&key (delete-mentions-on-server t ))
759
- (declare (ignorable delete-mentions-on-server)) ; because of the render macro '#-debug-mode'
760
759
(let ((trees ' ()))
761
760
(when-let* ((all-mentions (all-mentions))
762
761
(statuses (loop for mention in all-mentions
@@ -774,7 +773,6 @@ the latest 15 mentions)."
774
773
:folder db :+mentions-status-folder+
775
774
:localp t
776
775
:min-id nil )))
777
- #- debug-mode
778
776
(when delete-mentions-on-server
779
777
(loop for mention in all-mentions do
780
778
(delete-notification (tooter :id mention))))
Original file line number Diff line number Diff line change 1252
1252
:tree-config-rendering-values
1253
1253
:make-tree-colormap
1254
1254
:left-arrow
1255
+ :config-delete-fetched-mentions-p
1255
1256
:config-gemini-fullscreen-toc-width
1256
1257
:config-gemini-fullscreen-links-height
1257
1258
:config-post-allowed-language
Original file line number Diff line number Diff line change 971
971
(defclass update-mentions-event (program-event) ())
972
972
973
973
(defmethod process-event ((object update-mentions-event))
974
- (when-let* ((mentions (api-client :update-mentions-folder :delete-mentions-on-server t ))
975
- (mentions-count (length mentions))
976
- (thread-window specials :*thread-window* ))
977
- (when command-line :*notify-mentions*
978
- (loop for mention in mentions do
979
- (thread-window :add-mention thread-window mention))
980
- (ui :notify (format nil
981
- (n_ " Got ~a notification"
982
- " Got ~a notifications"
983
- mentions-count)
984
- mentions-count)))))
974
+ (let ((delete-fetched-mentions-required (swconf :config-delete-fetched-mentions-p)))
975
+ (when-let* ((mentions (api-client :update-mentions-folder
976
+ :delete-mentions-on-server delete-fetched-mentions-required))
977
+ (mentions-count (length mentions))
978
+ (thread-window specials :*thread-window* ))
979
+ (when command-line :*notify-mentions*
980
+ (loop for mention in mentions do
981
+ (thread-window :add-mention thread-window mention))
982
+ (ui :notify (format nil
983
+ (n_ " Got ~a notification"
984
+ " Got ~a notifications"
985
+ mentions-count)
986
+ mentions-count))))))
985
987
986
988
(defclass expand-thread-event (program-event event-with-timeline-and-folder)
987
989
((status-id
Original file line number Diff line number Diff line change 601
601
selected
602
602
unselected
603
603
deleted
604
+ fetched
605
+ delete
604
606
input
605
607
read
606
608
unread
622
624
ignore-user-boost-re
623
625
post-allowed-language
624
626
purge-history-days-offset
625
- purge-cache-days-offset)
627
+ purge-cache-days-offset
628
+ mentions)
626
629
627
630
(defun perform-missing-value-check (file)
628
631
(handler-case
983
986
(, transform-value-fn (access :accesses *software-configuration*
984
987
,@ keys))))
985
988
989
+ (gen-simple-access (delete-fetched-mentions-p
990
+ :transform-value-fn db-utils :db-not-nil-p)
991
+ +key-delete+
992
+ +key-fetched+
993
+ +key-mentions+ )
994
+
986
995
(gen-simple-access (gemini-fullscreen-toc-width
987
996
:transform-value-fn main-window :parse-subwin-w)
988
997
+key-gemini+
You can’t perform that action at this time.
0 commit comments