NIP-36
#NIP
Sensitive Content / Content Warning
https://github.com/nostr-protocol/nips/blob/master/36.md
content-warningタグをつけることで、イベントの内容を表示する前に読み手の承認が必要であることを示す。
クライアントは、ユーザがアクションを起こすまでの間、中身を隠すなどの対応を行うことができる。
code:仕様
tag: content-warning
options:
- reason(理由): optional(任意)
code: イベント例.json
{
"pubkey": "<pub-key>",
"created_at": 1000000000,
"kind": 1,
"tags": [
"t", "hastag",
"content-warning", "reason" /* 理由は任意 */
],
"content": "sensitive content with #hastag\n",
"id": "<event-id>"
}
関連ページ
#NIP-36非対応クライアントに配慮したSensitive_Content_な画像のpost