code wiki / _hdl_build / nx_cms_forum.nx
nx_cms_forum.nx
buildroot/runtime/_hdl_build/nx_cms_forum.nx
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
imports: nx_cms_comments.nxnx_syscalls.nx
imported by: nx_cms_forum_gate.nx
structs
| none |
consts
| 11 | const NX_FORUM_OPEN: i64 = 0 |
| 12 | const NX_FORUM_LOCKED: i64 = 1 |
| 14 | const NX_FORUM_REFUSED: i64 = 0 - 1 // a reply rejected because the thread is locked |
| 17 | const NX_FORUM_BAND: i64 = 1000000000 |
| 18 | const NX_FORUM_HORIZON: i64 = 1000000000 |
functions
| 21 | func forum_can_reply(state: i64) -> i64 { if state == NX_FORUM_OPEN { return 1 } return 0 } called by 1: forum_post_reply |
| 26 | func forum_post_reply(state: i64, body: *u8, n: i64) -> i64 |
| 34 | func forum_reply_visible(status: i64) -> i64 { return cmt_visible_public(status) } calls 1: cmt_visible_public |
| 39 | func forum_thread_rank(pinned: i64, last_activity: i64) -> i64 |