Files
q-blog/docs/features/FEATURE_WIKI_MODE_OVERVIEW.md
greenflame089 0b100af686 Release v0.2.2
2025-08-22 07:28:42 -04:00

1.8 KiB

Wiki Mode / Multi-Editor — Product Overview

Generated 2025-08-22

Summary

Q-Blog gains a new Wiki mode, allowing multiple Names to publish visible revisions of posts under a blog.

  • Names are the identity key (not account addresses).
  • Authorization is computed client-side; Qortal has no server scripting.
  • Precedence: blacklist > whitelist > global allow.
  • Backward-compatible: missing fields mean wiki is off.

UX

Editors do not need their own blog to publish a revision on a wiki-enabled blog.

  • Blog Settings: toggle Wiki Mode; configure whitelist/blacklist of Names.
  • Post page: shows the canonical (latest visible) revision with author/date attribution.
    • Implemented: canonical chosen across Names by exact BLOG_POST identifier; attribution shown when author differs from owner.
  • Edit button: shown only to Owner and authorized editors.
  • Blog list: groups posts by lineage and shows canonical revision per group.
    • Implemented for Blog page (/{name}/{blog}) using identifier-grouping.
    • Global feed, Subscriptions, and Favorites canonicalize duplicates via a cached lookup of per-blog wiki settings.
    • Header “My Blogs” switcher updates both title and posts by seeding blog context immediately.

Canonical Selection (v0.2.0)

The app selects one canonical revision when multiple Names publish the same BLOG_POST identifier:

  • Authorization first: filter out unauthorized Names using blog settings. The Owner is always allowed (cannot be blocked).
  • Freshest wins: compare updatedAt or qdnUpdated; pick the most recent.
  • Tie-breakers: if timestamps tie, prefer the Owner; otherwise, pick the lowest id for stability.

This logic is applied consistently in:

  • Main feed pages and “Load new posts”.
  • Favorites and Subscriptions lists.
  • Individual post view before fetching content.