Skip to content

History of commits

4473 commits

feat(comments): keep the comment an answer was written to

A comment stores reply_to_id, the comment of the same subject it answers; the form sends it as reply_to. An answer to a comment of another discussion, or to one deleted meanwhile, is kept without the link, and deleting the answered comment leaves its answers without it.
simba77 ১৫ নভে ২০২৬, দুপুর ১:৯ সময় Branch: 10.x cd48174

fix(theme): open the pictures of a live comment in the popup

The popup is bound on the whole page, so a picture brought by the live list opens in it too. Back from another page, an entry the live list has written to asks for its regions again instead of showing the HTML of the first load.
simba77 ১৫ নভে ২০২৬, দুপুর ১২:১ সময় Branch: 10.x 99c2804

chore(users): drop the column comm_old

What the owner of a guestbook has read is kept by profile__guestbook_reads; the column was read by nothing.
simba77 ১৫ নভে ২০২৬, রাত ১:৩ সময় Branch: 10.x f67d0a2

feat(news): discuss the articles through the comments of the core

The comments of an article are those of the core (subject news), shown within the page of the article as before; the routes hang off /news/comments/{id}. The author deletes their own comment, the moderator of the news any. Quotes move into the comments of every module. The pictures of a comment are tracked by the editor uploads; the attachment list the editor posted is no longer sent. Migrations: the comments of mapped articles move into comments with their pictures (a file shared by two comments gets a row of its own, a file the articles link stays with them), and news_comments is dropped once the news of 9.x are imported; on a site still waiting for system:update the import carries them and drops the table.
simba77 ১৫ নভে ২০২৬, রাত ১২:৫২ সময় Branch: 10.x 07da8e2

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 ১৫ নভে ২০২৬, রাত ১২:২২ সময় Branch: 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 ১৫ নভে ২০২৬, রাত ১২:৫ সময় Branch: 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 ১৪ নভে ২০২৬, রাত ১১:৫৮ সময় Branch: 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 ১৪ নভে ২০২৬, রাত ৮:৫১ সময় Branch: 10.x 6cf3bf8