code wiki / _hdl_build / nx_cms_forum.nx

nx_cms_forum.nx

buildroot/runtime/_hdl_build/nx_cms_forum.nx

2435 B43 linesdepth 3pulls 3 transitivereach 1 importersview sourcekind librarytopic cms
docsdependenciesstructsconstsfunctions

about

nx_cms_forum.nx -- CMS COMMUNITY FORUMS (sovereign threaded discussions). The bbPress/BuddyPress class, made Nishi-native and DRY: a forum reply is moderated by the EXISTING nx_cms_comments engine (rule 15 -- the forum does NOT re-implement spam scoring or visibility, it COMPOSES the proven module), so the same privacy-native on-box moderation that protects comments protects forum posts. The forum adds only what is genuinely its own: per-thread STATE (open/locked) gating new replies, and a DETERMINISTIC ordering rank where pinned/sticky threads sort above the rest. license_tier: ORIGINAL

dependencies 2 imports · 1 importers

nx_cms_comments.nx nx_syscalls.nx nx_cms_forum.nx nx_cms_forum_gate.nx

imports: nx_cms_comments.nxnx_syscalls.nx

imported by: nx_cms_forum_gate.nx

structs

none

consts

11const NX_FORUM_OPEN: i64 = 0
12const NX_FORUM_LOCKED: i64 = 1
14const NX_FORUM_REFUSED: i64 = 0 - 1 // a reply rejected because the thread is locked
17const NX_FORUM_BAND: i64 = 1000000000
18const NX_FORUM_HORIZON: i64 = 1000000000

functions

21func forum_can_reply(state: i64) -> i64 { if state == NX_FORUM_OPEN { return 1 } return 0 }
called by 1: forum_post_reply
26func forum_post_reply(state: i64, body: *u8, n: i64) -> i64
34func forum_reply_visible(status: i64) -> i64 { return cmt_visible_public(status) }
39func forum_thread_rank(pinned: i64, last_activity: i64) -> i64