diff options
| author | Alex Gleason <alex@alexgleason.me> | 2024-06-07 11:37:04 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-07 11:37:04 -0500 |
| commit | a7ed4e805fe7264ddf2bf2b69c0b8a763d0ba01b (patch) | |
| tree | 4bf9164c788424a4589e85f4120f200982034742 /32.md | |
| parent | ab6019a704ce4df58c0b33c17ca6f37cdf0f4604 (diff) | |
| parent | 9361b1817e6d81fa98d7c61ed0e778fc97ce25cf (diff) | |
Merge pull request #1129 from coracle-social/relax-nip32
relax requirements for NIP 32 L tags
Diffstat (limited to '32.md')
| -rw-r--r-- | 32.md | 8 |
1 files changed, 5 insertions, 3 deletions
| @@ -20,7 +20,7 @@ Label Namespace Tag | |||
| 20 | An `L` tag can be any string, but publishers SHOULD ensure they are unambiguous by using a well-defined namespace | 20 | An `L` tag can be any string, but publishers SHOULD ensure they are unambiguous by using a well-defined namespace |
| 21 | (such as an ISO standard) or reverse domain name notation. | 21 | (such as an ISO standard) or reverse domain name notation. |
| 22 | 22 | ||
| 23 | `L` tags are REQUIRED in order to support searching by namespace rather than by a specific tag. The special `ugc` | 23 | `L` tags are RECOMMENDED in order to support searching by namespace rather than by a specific tag. The special `ugc` |
| 24 | ("user generated content") namespace MAY be used when the label content is provided by an end user. | 24 | ("user generated content") namespace MAY be used when the label content is provided by an end user. |
| 25 | 25 | ||
| 26 | `L` tags starting with `#` indicate that the label target should be associated with the label's value. | 26 | `L` tags starting with `#` indicate that the label target should be associated with the label's value. |
| @@ -29,7 +29,9 @@ This is a way of attaching standard nostr tags to events, pubkeys, relays, urls, | |||
| 29 | Label Tag | 29 | Label Tag |
| 30 | ---- | 30 | ---- |
| 31 | 31 | ||
| 32 | An `l` tag's value can be any string. `l` tags MUST include a `mark` matching an `L` tag value in the same event. | 32 | An `l` tag's value can be any string. If using an `L` tag, `l` tags MUST include a mark matching an `L` |
| 33 | tag value in the same event. If no `L` tag is included, a mark SHOULD still be included. If none is | ||
| 34 | included, `ugc` is implied. | ||
| 33 | 35 | ||
| 34 | Label Target | 36 | Label Target |
| 35 | ---- | 37 | ---- |
| @@ -42,7 +44,7 @@ or topics respectively. As with NIP-01, a relay hint SHOULD be included when usi | |||
| 42 | Content | 44 | Content |
| 43 | ------- | 45 | ------- |
| 44 | 46 | ||
| 45 | Labels should be short, meaningful strings. Longer discussions, such as for a review, or an | 47 | Labels should be short, meaningful strings. Longer discussions, such as for an |
| 46 | explanation of why something was labeled the way it was, should go in the event's `content` field. | 48 | explanation of why something was labeled the way it was, should go in the event's `content` field. |
| 47 | 49 | ||
| 48 | Self-Reporting | 50 | Self-Reporting |