-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from erechorse/nip-18
Translate NIP-18
- Loading branch information
Showing
1 changed file
with
19 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
NIP-18 | ||
====== | ||
|
||
Reposts | ||
リポスト | ||
------- | ||
|
||
`draft` `optional` | ||
|
||
A repost is a `kind 6` event that is used to signal to followers | ||
that a `kind 1` text note is worth reading. | ||
リポストは`kind 1`テキスト投稿が読む価値を持つことを | ||
フォロワーへ知らせるために使われる`kind 6`イベントです。 | ||
|
||
The `content` of a repost event is _the stringified JSON of the reposted note_. It MAY also be empty, but that is not recommended. | ||
リポストイベントの`content`は _リポストされた投稿を文字列化したJSON_ です。これは空でもかまいません (MAY) が、推奨されません。 | ||
|
||
The repost event MUST include an `e` tag with the `id` of the note that is | ||
being reposted. That tag MUST include a relay URL as its third entry | ||
to indicate where it can be fetched. | ||
リポストイベントはリポストされた投稿の`id`を持つ`e`タグを含まなければなりません (MUST) 。 | ||
そのタグは投稿を取得可能な場所を指すリレーURLを | ||
3番目の値として含まなければなりません (MUST) 。 | ||
|
||
The repost SHOULD include a `p` tag with the `pubkey` of the event being | ||
reposted. | ||
リポストはリポストされたイベントの`pubkey`を持つ`p`タグを | ||
含めるべきです (SHOULD) 。 | ||
|
||
## Quote Reposts | ||
## 引用リポスト | ||
|
||
Quote reposts are `kind 1` events with an embedded `e` tag | ||
(see [NIP-08](08.md) and [NIP-27](27.md)). Because a quote repost includes | ||
an `e` tag, it may show up along replies to the reposted note. | ||
引用リポストは`e`タグが埋め込まれた`kind 1`イベントです | ||
([NIP-08](08.md)や[NIP-27](27.md)を参照) 。引用リポストは | ||
`e`タグを含むので、リポストされた投稿へのリプライと一緒に表示されてもかまいません。 | ||
|
||
## Generic Reposts | ||
## 汎用リポスト | ||
|
||
Since `kind 6` reposts are reserved for `kind 1` contents, we use `kind 16` | ||
as a "generic repost", that can include any kind of event inside other than | ||
`kind 1`. | ||
`kind 6`のリポストは`kind 1`のコンテンツのために予約されているため、`kind 16`を | ||
「汎用リポスト」として用い、これは`kind 1`以外のあらゆる種類のイベントを含めることが | ||
できます。 | ||
|
||
`kind 16` reposts SHOULD contain a `k` tag with the stringified kind number | ||
of the reposted event as its value. | ||
`kind 16`のリポストは、リポストされたイベントの文字列化されたkind番号を値とする | ||
`k`タグを含むべきです (SHOULD) 。 |