Skip to content

History of commits

4473 commits

feat(forum): give every form that writes a one-time token

ForumFormTokens replaces the single numeric token of the session: a new topic, a post, an answer and an edit each spend theirs on saving, so a form sent twice saves once. The last ten tokens stay valid for forms open in several tabs.
simba77 18 ნოე 2026 22:17 Branch: 10.x 9952965

feat(forum): keep the post an answer was written to

Migration forum_messages.reply_to_id (index, foreign key SET NULL). The page of an answer and the form under the topic (reply_to) both store it; a post of another topic, a hidden one the writer cannot see or their own leaves the answer without the link.
simba77 18 ნოე 2026 20:48 Branch: 10.x 8c333f7

feat(forum): redesign the filter by author

The authors of the topic are a list of boxes with their counts in a card, under full breadcrumbs and a link back to the topic. The script of the forum held only what the whole site uses: the lightbox moves to lightbox.js, the label of a chosen file to file-input.js without jQuery.
simba77 16 ნოე 2026 22:13 Branch: 10.x db3fdd8

feat(forum): redesign the page of a topic

The heading carries the marks of the topic, the count of posts and views, the button of the answer and the menu of the moderator in a popover. The poll is a card with a bar for each answer, the leader marked in the accent; the colours of the answers are gone from the configuration. The form of the answer is the editor of the comments, always on the page — above the posts when the newest go first; a guest and a closed topic get a word instead. Pages carry the range of the posts, at the top as well. The poll no longer escapes its text when it is read: the template escapes it, and a name with an ampersand was shown escaped twice.
simba77 16 ნოე 2026 22:10 Branch: 10.x 116a5cd

feat(forum): show the posts of a topic as the comments of the site

A post is built once by ForumPostRows into ForumPostDTO — the text rendered, the author with the roles of all the authors read at once, the files, the actions — for the topic and for the page of a single post. The post model loses the accessors that served the old templates and the services it took from di() on every instance. The author edits the first post of the topic in a section that lets them, not whichever of their posts opens a page. The visitors of a topic are matched by their address in PHP rather than with functions only MySQL has, so the topic page opens for a member in the SQLite suite.
simba77 16 ნოე 2026 22:04 Branch: 10.x 961503a

refactor(forum): keep only the order of posts in the forum settings

The quick-reply form, the preview switch and the pinned first post are gone from the profile and the forum: the reply form is always on the topic page and the preview button of a new topic always shows. The order of posts is read by one service (ForumUserSettings) instead of nine copies of the defaults.
simba77 16 ნოე 2026 21:55 Branch: 10.x 1df1fd9

feat(forum): redesign the listings of topics

A section, the unread topics, a period and the latest ones list their topics as rows: the state as an icon and badges, the count of posts leading to the last page and lit when something is unread, the author and the last post; across the forum each row names its section. A section puts New Topic beside its heading and sums its topics and posts under it. A hidden topic shows to whoever may see it, struck through, with who hid it and the buttons each one's own permission allows: restoring it by a form, deleting it for good after the dialog. Marking every topic as read asks first (RequireConfirmationMiddleware) and comes back to the unread ones with a toast. A period is asked for in hours by a GET form. ForumTopicRows makes the rows of all four from the columns of the table; the addresses come from ForumSectionPaths, every section read once per request, instead of a query or two for each row. The accessors of the topic model that served the old templates are gone, with the services every model fetched on creation.
simba77 15 ნოე 2026 22:47 Branch: 10.x 89b3690