Forum: search, muting members, archived topics, the public threads in the sitemap
- Search (/forum/kereses, the magnifier in the forum bar): thread titles
and posts the viewer may read, Hungarian stems and word beginnings
without accents ("alvas" finds "alvásban"), one result per thread with
the matching words marked.
- Muting a member (post menu, profile; the list in the settings): their
threads leave the lists, their posts fold up, their replies and mentions
no longer count or send e-mails. They are not told.
- The admin archives a topic (Moderálás → Témák): it stays readable but
takes no new threads or replies, and folds away on the front page.
- The public topics and threads are in the sitemap; the forum's own pages
are kept from robots.
- A reply e-mail goes to the one answered, also on the second level.
- Migration 0043 also prepares charts attached to a forum question.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
@@ -42,6 +42,8 @@ export interface ForumTopic extends TopicRef {
|
||||
description: string;
|
||||
visibility: "public" | "members" | "restricted";
|
||||
listening: boolean;
|
||||
/** Archived: readable, but takes nothing new. */
|
||||
archived?: boolean;
|
||||
readable: boolean;
|
||||
/** A restricted topic: the viewer's place in it. */
|
||||
membership?: "none" | "pending" | "approved" | null;
|
||||
@@ -84,7 +86,7 @@ export interface ForumHome {
|
||||
|
||||
export interface TopicPage {
|
||||
viewer: ForumViewer;
|
||||
topic: TopicRef & { description: string; visibility: string; listening: boolean };
|
||||
topic: TopicRef & { description: string; visibility: string; listening: boolean; archived?: boolean };
|
||||
threads: ThreadCard[];
|
||||
page: number;
|
||||
has_more: boolean;
|
||||
@@ -113,6 +115,8 @@ export interface ForumPost {
|
||||
system?: boolean;
|
||||
/** The post this reply answered (it may sit on the same level). */
|
||||
reply_to?: { id: number; nickname: string | null } | null;
|
||||
/** The viewer muted the author: shown folded up. */
|
||||
muted?: boolean;
|
||||
}
|
||||
|
||||
export interface ThreadPage {
|
||||
@@ -122,7 +126,7 @@ export interface ThreadPage {
|
||||
slug: string;
|
||||
title: string;
|
||||
intent: "listen" | "advice" | null;
|
||||
topic: TopicRef & { visibility: string; listening: boolean };
|
||||
topic: TopicRef & { visibility: string; listening: boolean; archived?: boolean };
|
||||
author: ForumAuthor | null;
|
||||
created_at: string;
|
||||
locked: boolean;
|
||||
@@ -188,6 +192,8 @@ export interface MemberProfile {
|
||||
thread_count: number;
|
||||
last_seen: "online" | "day" | "week" | "earlier" | null;
|
||||
own: boolean;
|
||||
/** The viewer muted them. */
|
||||
muted: boolean;
|
||||
banned_until: string | null;
|
||||
ban_reason: string | null;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user