mirror of https://codeberg.org/cage/tinmop/
- ensured no reconstruction of parents id done when deleting a status after remote editing;
- removed status to ensure get the latest version from the server when updating a timeline or expanding a thread (and forcing ignoring of logical deleted posts).
This commit is contained in:
parent
c110cc0943
commit
0087e2c363
|
@ -2515,6 +2515,14 @@ to `timeline' , `folder' and possibly `account-id', older than
|
|||
(:= :folder folder)
|
||||
(:= :status-id (row-message-status-id child)))))))))
|
||||
|
||||
(defun remove-status-row (timeline-type folder status-id)
|
||||
"delete status row"
|
||||
(let ((query-delete (delete-from :status
|
||||
(where (:and (:= :timeline timeline-type)
|
||||
(:= :folder folder)
|
||||
(:= :status-id status-id))))))
|
||||
(query query-delete)))
|
||||
|
||||
(defun count-status-marked-to-delete ()
|
||||
(second (fetch-single (select (fields (:count :status-id))
|
||||
(from :status)
|
||||
|
|
|
@ -1107,6 +1107,8 @@
|
|||
:add-to-status-skipped
|
||||
:remove-from-status-skipped
|
||||
:remove-from-status-ignored
|
||||
:delete-status
|
||||
:remove-status-row
|
||||
:add-to-followers
|
||||
:remove-from-followers
|
||||
:forget-all-statuses-marked-deleted
|
||||
|
|
|
@ -515,7 +515,8 @@
|
|||
(db::concat-tags status)))
|
||||
(skip-this-status nil))
|
||||
(when force-saving-of-ignored-status-p
|
||||
(db:remove-from-status-ignored status-id folder timeline-type))
|
||||
(db:remove-from-status-ignored status-id folder timeline-type)
|
||||
(db:remove-status-row timeline-type folder status-id))
|
||||
(when (or (and (db:user-ignored-p account-id)
|
||||
(not (db:status-skipped-p status-id folder timeline-type)))
|
||||
(and language
|
||||
|
@ -2102,7 +2103,7 @@
|
|||
(ui:notify (_ "Editing post…"))
|
||||
(client:edit-status status-id new-content nil nil nil nil)
|
||||
(db:remove-from-status-ignored status-id folder timeline)
|
||||
(db::delete-status timeline folder status-id)
|
||||
(db:remove-status-row timeline folder status-id)
|
||||
(let* ((refresh-event (make-instance 'refresh-thread-windows-event
|
||||
:priority (1+ +standard-event-priority+)
|
||||
:message-status-id status-id))
|
||||
|
|
Loading…
Reference in New Issue