mirror of https://codeberg.org/cage/tinmop/
- removed nethod to delete notifications using old API
new version of pleroma implements the same API as mastodon 3.x - fixed command line switch to get notification for mentions.
This commit is contained in:
parent
1bf02d1fda
commit
4bbb0184e1
|
@ -658,18 +658,16 @@ numerical indices identifying the option voting for"
|
||||||
:exclude-types exclude-types
|
:exclude-types exclude-types
|
||||||
:account-id account-id))
|
:account-id account-id))
|
||||||
|
|
||||||
(defun mentions (max-id)
|
(defun mentions (max-id &optional (excluded-types '(:follow :favourite :reblog)))
|
||||||
"Get the latest mentions, starting from `min-id` (pass nil to get
|
"Get the latest mentions, starting from `min-id` (pass nil to get
|
||||||
the latest 15 mentions)."
|
the latest 15 mentions)."
|
||||||
(get-notifications :max-id max-id
|
(get-notifications :max-id max-id
|
||||||
:exclude-types '(:follow
|
:exclude-types excluded-types))
|
||||||
:favourite
|
|
||||||
:reblog)))
|
|
||||||
|
|
||||||
(defun-w-lock delete-notification (notification-id)
|
(defun-w-lock delete-notification (notification-id)
|
||||||
*client-lock*
|
*client-lock*
|
||||||
"Delete a notification identified by `notification-id'"
|
"Delete a notification identified by `notification-id'"
|
||||||
(api-pleroma:delete-notification *client* notification-id))
|
(tooter:delete-notification *client* notification-id))
|
||||||
|
|
||||||
(defun sort-id< (list)
|
(defun sort-id< (list)
|
||||||
"Sort entities by id in descending order"
|
"Sort entities by id in descending order"
|
||||||
|
|
|
@ -16,16 +16,6 @@
|
||||||
|
|
||||||
(in-package :api-pleroma)
|
(in-package :api-pleroma)
|
||||||
|
|
||||||
(defgeneric delete-notification (object id))
|
|
||||||
|
|
||||||
(defmethod delete-notification ((object tooter:client) (id string))
|
|
||||||
(tooter:submit object
|
|
||||||
"/api/v1/notifications/dismiss"
|
|
||||||
:id id))
|
|
||||||
|
|
||||||
(defmethod delete-notification ((object tooter:client) (notification tooter:notification))
|
|
||||||
(delete-notification object (tooter:id notification)))
|
|
||||||
|
|
||||||
(defgeneric create-chat (object user-id))
|
(defgeneric create-chat (object user-id))
|
||||||
|
|
||||||
(defmethod create-chat ((object tooter:client) (account-id string))
|
(defmethod create-chat ((object tooter:client) (account-id string))
|
||||||
|
|
|
@ -122,4 +122,4 @@
|
||||||
(when (getf options :check-follows-requests)
|
(when (getf options :check-follows-requests)
|
||||||
(setf *check-follow-requests* (getf options :check-follows-requests)))
|
(setf *check-follow-requests* (getf options :check-follows-requests)))
|
||||||
(when (getf options :notify-mentions)
|
(when (getf options :notify-mentions)
|
||||||
(setf *notify-mentions* (getf options :check-follows-requests))))))
|
(setf *notify-mentions* (getf options :notify-mentions))))))
|
||||||
|
|
|
@ -1267,7 +1267,6 @@
|
||||||
:misc)
|
:misc)
|
||||||
(:shadowing-import-from :misc :random-elt :shuffle)
|
(:shadowing-import-from :misc :random-elt :shuffle)
|
||||||
(:export
|
(:export
|
||||||
:delete-notification
|
|
||||||
:chat-message
|
:chat-message
|
||||||
:message-id
|
:message-id
|
||||||
:nreadp
|
:nreadp
|
||||||
|
|
Loading…
Reference in New Issue