upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Gardner <202880+erskingardner@users.noreply.github.com>2023-07-14 00:05:02 +0200
committerJeff Gardner <202880+erskingardner@users.noreply.github.com>2023-07-14 00:05:02 +0200
commitf065a40ee60d3b0f48f4f09e3daf12d6045cc0ae (patch)
tree379222e24d71757988f890c6f7a7bd09c7e7e06d
parent451c06a3c572a13afe45c1d80616f8e6dd9bb1de (diff)
Add image tags and change format of the price tag.
-rw-r--r--402.md16
1 files changed, 14 insertions, 2 deletions
diff --git a/402.md b/402.md
index c0eee14..5e725c7 100644
--- a/402.md
+++ b/402.md
@@ -25,6 +25,7 @@ The `.pubkey` field of these events are treated as the party creating the listin
25### Metadata 25### Metadata
26 26
27- For "tags"/"hashtags" (i.e. categories or keywords of relevance for the listing) the `"t"` event tag should be used, as per [NIP-12](https://github.com/nostr-protocol/nips/blob/master/12.md). 27- For "tags"/"hashtags" (i.e. categories or keywords of relevance for the listing) the `"t"` event tag should be used, as per [NIP-12](https://github.com/nostr-protocol/nips/blob/master/12.md).
28- For images, whether included in the markdown content or not, clients SHOULD use `image` tags as described in [NIP-58](https://github.com/nostr-protocol/nips/blob/master/58.md). This allows clients to display images in carousel format more easily.
28 29
29The following tags, used for structured metadata, are standardized and SHOULD be included. Other tags may be added as necessary. 30The following tags, used for structured metadata, are standardized and SHOULD be included. Other tags may be added as necessary.
30 31
@@ -32,7 +33,17 @@ The following tags, used for structured metadata, are standardized and SHOULD be
32- `"summary"`, for short tagline or summary for the listing 33- `"summary"`, for short tagline or summary for the listing
33- `"published_at"`, for the timestamp (in unix seconds – converted to string) of the first time the listing was published. 34- `"published_at"`, for the timestamp (in unix seconds – converted to string) of the first time the listing was published.
34- `"location"`, for the location. 35- `"location"`, for the location.
35- `"price"`, for the price of the thing being listed. This is a free-form string. e.g. `€2,000/week` or `$22 per hour` or `$500` 36- `"price"`, for the price of the thing being listed. This is an array in the format `[ "price", "<number>", "<currency>", "<frequency>" ]`.
37 - `"price"` is the name of the tag
38 - `"<number>"` is the amount in numeric format (but included in the tag as a string)
39 - `"<currency>"` is the currency unit in 3-character ISO 4217 format.
40 - `"<frequency>"` is optional and can be used to describe recurring payments.
41
42#### `price` examples
43
44- $50 one-time payment `["price", "50", "USD", ""]`
45- €15 per month `["price", "15", "EUR", "monthly"]`
46- £50,000 per year `["price", "50000", "GBP", "yearly"]`
36 47
37Other standard tags that might be useful. 48Other standard tags that might be useful.
38 49
@@ -51,9 +62,10 @@ Other standard tags that might be useful.
51 ["title", "Lorem Ipsum"], 62 ["title", "Lorem Ipsum"],
52 ["published_at", "1296962229"], 63 ["published_at", "1296962229"],
53 ["t", "electronics"], 64 ["t", "electronics"],
65 ["image", "https://url.to.img", "256x256"],
54 ["summary", "More lorem ipsum that is a little more than the title"], 66 ["summary", "More lorem ipsum that is a little more than the title"],
55 ["location", "NYC"], 67 ["location", "NYC"],
56 ["price", "$100"], 68 ["price", "100", "USD"],
57 [ 69 [
58 "e", 70 "e",
59 "b3e392b11f5d4f28321cedd09303a748acfd0487aea5a7450b3481c60b6e4f87", 71 "b3e392b11f5d4f28321cedd09303a748acfd0487aea5a7450b3481c60b6e4f87",