1
0
Fork 0

- 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:
cage 2024-07-10 21:48:34 +02:00
parent c110cc0943
commit 0087e2c363
3 changed files with 13 additions and 2 deletions

View File

@ -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)

View File

@ -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

View File

@ -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))