Skip to content

История коммитов

4477 коммитов

feat(comments): let a module show the discussion within its own page

CommentSubjectDTO gains embeddedIn (the page that shows the discussion; the discussion address then leads there and the forms come back to it), moderator (a permission of the module that moderates the discussion) and authorCanDelete (the author removes their own comment; removing all comments of an author stays with the moderator and the owner). CommentDiscussionView gives the variables of the discussion to the core page and to the page of a module; the block is the component components/comments/discussion.twig, with an optional heading. CommentsService::countForSubjects() counts the comments of many objects at once.
simba77 15 ноя 2026 г., 0:22 Ветка: 10.x 0e4276b

fix(forum): track the pictures of the posts in the editor uploads

A post takes only the pictures its author uploaded, as its text shows them; the attachment list sent by the browser is no longer read. The pictures go after the commit when a post, a topic, a section with its topics or the purged hidden posts are deleted for good; those last two used to leave their pictures behind. Migrations: forum_message_files and the pictures the texts show move into editor_uploads (a file held by two posts gets a copy of its row for the second), then forum_message_files is dropped. The command forum:cleanup-orphan-files is replaced by editor-uploads:cleanup.
simba77 15 ноя 2026 г., 0:05 Ветка: 10.x 7860a3b

fix(guestbook): track the pictures of the entries in the editor uploads

An entry takes only the pictures its author uploaded, as its text shows them; the attachment list sent by the browser is no longer read, so the upload of somebody else cannot be attached and then deleted with the entry. Deleting and clearing give the pictures up after the commit. Migrations: the attached files and the pictures the texts show move into editor_uploads (a file held by two entries gets a copy of its row for the second), then guest.attached_files is dropped.
simba77 14 ноя 2026 г., 23:58 Ветка: 10.x 7cb2827

fix(comments): refuse to edit a comment deleted meanwhile

The edit read the comment before its transaction, so a comment deleted by another request in between was updated nowhere while the pictures of the new text were still given to its id, out of reach of the cleanup. The comment is read again under a lock inside the transaction; when it is gone the edit is rolled back and answered 404.
simba77 14 ноя 2026 г., 20:51 Ветка: 10.x 6cf3bf8

fix(comments): count a deletion once and page the feeds over what can be seen

Deleting one comment read it outside the transaction, so two requests deleting it at once both took it off the counters. The comment is read again under a lock inside the transaction, and only what was actually deleted is uncounted. The feeds of the latest comments paged first and dropped the comments of hidden objects afterwards: the comments of articles awaiting moderation could empty the public page of the library while older visible ones existed. A subject now names the objects the visitor may not see (hiddenIds()), and the query leaves them out before it is paged and counted.
simba77 14 ноя 2026 г., 20:41 Ветка: 10.x 047722c

fix(uploads): take one file for each picture a text shows

Identical uploads share a path in FileStore, so one address stands for several of them. The record took them all and eleven uploads of the same picture refused a text showing it once as over the limit. Now one file is taken per picture, the one the record already holds first.
simba77 14 ноя 2026 г., 20:41 Ветка: 10.x 3c1edc6

feat(profile): keep the guestbook of a profile as the comments of the core

The guestbook of a profile is served by the core under /profile/{id}/guestbook and called a guestbook there. The owner removes its entries and keeps out those on their ignore list. What is unread is now the entries of others written after the last one the owner saw, kept by id in profile__guestbook_reads, instead of the difference of two counters that deletions broke: three old entries deleted after two new ones arrived no longer hid them, and the owner's own entries are never unread. Opening the guestbook reads everything. A core migration carries cms_users_guestbook over and the next drops it; every guestbook starts read, since the old counter cannot be carried over exactly. users.comm_old is no longer read.
simba77 14 ноя 2026 г., 20:15 Ветка: 10.x 95b9aad

feat(album): move the comments of the photos to the comments of the core

The discussion of a photo is served by the core under /album/photo/{id}/comments, for whoever may see the album. The owner of the album removes the comments under its photos and keeps out those on their ignore list. A comment of somebody else marks the photo as having unread comments; the owner opening the discussion marks them read, through the new discussionViewed() hook of the subjects. A migration carries cms_album_comments over and the next drops it. Deleting a photo, an album or an account deletes the comments through the service; the tops of recent comments and of unread ones and the admin feed read the core.
simba77 14 ноя 2026 г., 20:11 Ветка: 10.x 9e472ce