Skip to content

History of commits

4473 commits

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. nov 2026 20:41 Branch: 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. nov 2026 20:41 Branch: 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. nov 2026 20:15 Branch: 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. nov 2026 20:11 Branch: 10.x 9e472ce

feat(library): move the comments of the articles to the comments of the core

The discussion of an article is served by the core under /library/article/{id}/comments. The uploader of the article removes the comments under it, the ban of the library closes it, an article with its comments switched off takes no new one, and one awaiting moderation is discussed by the moderators only. A guest now reads a published discussion instead of getting 403. A migration carries cms_library_comments over and the next drops it. Deleting an article or a section deletes the comments through the service. The latest comments page and the admin feed read the core; the page shows the newest comments rather than the newest of every article.
simba77 14. nov 2026 20:07 Branch: 10.x 7a1d4c0

feat(downloads): move the comments of the files to the comments of the core

The discussion of a file is served by the core under its old address /downloads/comments/{id}; the old ?mod= and start addresses lead to it. A migration carries download__comments over, turning the stored replies into comments of their authors, and the next one drops the table. Deleting a file, a category or a missing file deletes its comments through the service; the admin feed and the review of comments read the core, and the review shows each comment with the actions of its discussion. When the comments of the downloads are switched off, the discussion answers 404 instead of 403 to those who may not see it.
simba77 14. nov 2026 20:00 Branch: 10.x d7e5b2c

feat(comments): add the comments of the core

One comments table for every module that lets visitors discuss its objects. A module describes its object through CommentSubjectInterface and declares the routes of the discussion with CommentRoutes under the address it already has; the core controller serves the discussion as a live list, oldest first, with permalinks, editing, deletion of one comment or of every comment of an author, and editor pictures tracked by EditorUploads. Access is checked on every request: bans of the kinds the subject names, the ignore list of the owner, a closed discussion. The author edits for five minutes, the moderator always, the owner where the subject lets them. A comment, the counter of the object, the number of comments of the author and the pictures change in one transaction. Deleting an account deletes its comments through the service, and the pictures it uploaded and never sent. No module uses the service yet.
simba77 14. nov 2026 19:50 Branch: 10.x dc75de8

feat(uploads): track who uploaded each editor picture and which record holds it

EditorUploads registers a picture as the unsent upload of its user, reserving the place under a lock of the account so that the limit of 20 holds against parallel uploads. Saving a record gives it only the pictures its text shows, taken from the user's own unsent uploads and the pictures the record already held; the ids the editor posts are not read. Deleting records or an account removes their files after the outermost commit. editor-uploads:cleanup removes uploads never sent and files no row knows, in the directories of the declared consumers only. No record uses it yet.
simba77 14. nov 2026 19:38 Branch: 10.x 8060687