docs: rename NIP-9A -> NIP-9B in code comments + user strings

The upstream NIP draft for kind:34551 community rules
(nostr-protocol/nips#2331) was renumbered from 9A to 9B per maintainer
feedback that slot 9a is already claimed by the push-notifications
draft (nostr-protocol/nips#2194):

  https://github.com/nostr-protocol/nips/pull/2331#issuecomment-4442813289

This commit updates all human-readable references in the merged
community-rules code:

- 7 Kotlin files in quartz (CommunityRulesEvent, CommunityRulesValidator,
  5 tag classes) — Kdoc comments
- 13 Kotlin files in amethyst (composer, feed filter, rules editor,
  Account, AccountSettings, tests) — code comments + Kdoc
- 1 English strings file (values/strings.xml) — 2 user-facing strings
- 54 translation strings files (values-*-r*/strings.xml) — same two
  strings, untranslated "NIP-9A" token replaced with "NIP-9B"

Kind number (34551), schema, tag names, and behaviour are unchanged.
No public API or DTO field renames. Pure docs/strings.

Verified: :quartz:spotlessCheck, :amethyst:spotlessCheck,
:commons:spotlessCheck all clean.
This commit is contained in:
m
2026-05-14 09:29:59 +10:00
parent dbd7266d8f
commit 2c3d006f05
74 changed files with 105 additions and 105 deletions
@@ -37,7 +37,7 @@ import com.vitorpamplona.quartz.nip72ModCommunities.rules.tags.WotTag
import com.vitorpamplona.quartz.utils.TimeUtils
/**
* NIP-9A Verifiable Community Rules.
* NIP-9B Verifiable Community Rules.
*
* Addressable replaceable event (`kind:34551`) carrying a machine-readable, signed
* rules document for a community defined by NIP-72 (`kind:34550`). Clients fetch
@@ -24,10 +24,10 @@ import com.vitorpamplona.quartz.nip01Core.core.HexKey
import com.vitorpamplona.quartz.nip72ModCommunities.rules.tags.PubkeyRuleTag
/**
* Validates draft events against a [CommunityRulesEvent] (NIP-9A).
* Validates draft events against a [CommunityRulesEvent] (NIP-9B).
*
* Pure logic; no I/O. Web-of-trust gates are deferred to the caller via
* [WotResolver] because NIP-9A leaves the lookup mechanism unspecified
* [WotResolver] because NIP-9B leaves the lookup mechanism unspecified
* (NIP-02 follow lists, NIP-85 trusted assertions, etc).
*/
class CommunityRulesValidator(
@@ -26,7 +26,7 @@ import com.vitorpamplona.quartz.utils.arrayOfNotNull
import com.vitorpamplona.quartz.utils.ensure
/**
* NIP-9A `k` tag: whitelists one event kind for the community, optionally with a
* NIP-9B `k` tag: whitelists one event kind for the community, optionally with a
* max event size in bytes and a per-author quota per day.
*
* Form: `["k", "<kind>", "<max-bytes?>", "<max-per-author-per-day?>"]`
@@ -24,7 +24,7 @@ import com.vitorpamplona.quartz.nip01Core.core.has
import com.vitorpamplona.quartz.utils.ensure
/**
* NIP-9A `max_event_size` tag: hard cap on the JSON-encoded event byte size,
* NIP-9B `max_event_size` tag: hard cap on the JSON-encoded event byte size,
* applied in addition to any per-kind size limit from `KindRuleTag`.
*
* Form: `["max_event_size", "<bytes>"]`
@@ -24,7 +24,7 @@ import com.vitorpamplona.quartz.nip01Core.core.has
import com.vitorpamplona.quartz.utils.ensure
/**
* NIP-9A `min_rules_created_at` tag: anti-rollback ratchet.
* NIP-9B `min_rules_created_at` tag: anti-rollback ratchet.
*
* Clients MUST refuse rules events whose `created_at` is below this value, even
* when signed by the legitimate owner. Limits the damage window from a stolen
@@ -27,7 +27,7 @@ import com.vitorpamplona.quartz.utils.arrayOfNotNull
import com.vitorpamplona.quartz.utils.ensure
/**
* NIP-9A `p` tag: per-pubkey allow/deny override with optional role.
* NIP-9B `p` tag: per-pubkey allow/deny override with optional role.
*
* Form: `["p", "<hex>", "<allow|deny>", "<role?>"]`
*
@@ -26,7 +26,7 @@ import com.vitorpamplona.quartz.nip01Core.core.has
import com.vitorpamplona.quartz.utils.ensure
/**
* NIP-9A `wot` tag: optional web-of-trust gate.
* NIP-9B `wot` tag: optional web-of-trust gate.
*
* Form: `["wot", "<root-pubkey>", "<depth>"]`
*