closes #580
This commit is contained in:
parent
a57951c0ed
commit
0a60b22fb2
11
README.md
11
README.md
@ -16,7 +16,7 @@ Snort supports the following NIP's:
|
|||||||
- [x] NIP-10: Conventions for clients' use of `e` and `p` tags in text events
|
- [x] NIP-10: Conventions for clients' use of `e` and `p` tags in text events
|
||||||
- [x] NIP-11: Relay Information Document
|
- [x] NIP-11: Relay Information Document
|
||||||
- [x] NIP-12: Generic Tag Queries
|
- [x] NIP-12: Generic Tag Queries
|
||||||
- [ ] NIP-13: Proof of Work
|
- [x] NIP-13: Proof of Work
|
||||||
- [ ] NIP-14: Subject tag in text events
|
- [ ] NIP-14: Subject tag in text events
|
||||||
- [x] NIP-15: End of Stored Events Notice
|
- [x] NIP-15: End of Stored Events Notice
|
||||||
- [x] NIP-18: Reposts
|
- [x] NIP-18: Reposts
|
||||||
@ -25,20 +25,25 @@ Snort supports the following NIP's:
|
|||||||
- [x] NIP-21: `nostr:` Protocol handler (`web+nostr`)
|
- [x] NIP-21: `nostr:` Protocol handler (`web+nostr`)
|
||||||
- [x] NIP-25: Reactions
|
- [x] NIP-25: Reactions
|
||||||
- [x] NIP-26: Delegated Event Signing (Display delegated signings only)
|
- [x] NIP-26: Delegated Event Signing (Display delegated signings only)
|
||||||
- [x] NIP-27: Text note references (Parsing only)
|
- [x] NIP-27: Text note references
|
||||||
- [ ] NIP-28: Public Chat
|
- [ ] NIP-28: Public Chat
|
||||||
- [x] NIP-30: Custom Emoji
|
- [x] NIP-30: Custom Emoji
|
||||||
|
- [x] NIP-31: Alt tag for unknown events
|
||||||
- [x] NIP-36: Sensitive Content
|
- [x] NIP-36: Sensitive Content
|
||||||
- [ ] NIP-40: Expiration Timestamp
|
- [ ] NIP-40: Expiration Timestamp
|
||||||
- [x] NIP-42: Authentication of clients to relays
|
- [x] NIP-42: Authentication of clients to relays
|
||||||
- [x] NIP-44: Versioned encryption
|
- [x] NIP-44: Versioned encryption
|
||||||
|
- [x] NIP-46: Nostr connect (+bunker)
|
||||||
|
- [x] NIP-47: Nostr wallet connect
|
||||||
- [x] NIP-50: Search
|
- [x] NIP-50: Search
|
||||||
- [x] NIP-51: Lists
|
- [x] NIP-51: Lists
|
||||||
|
- [x] NIP-53: Live Events
|
||||||
- [x] NIP-58: Badges
|
- [x] NIP-58: Badges
|
||||||
- [x] NIP-59: Gift Wrap
|
- [x] NIP-59: Gift Wrap
|
||||||
- [x] NIP-65: Relay List Metadata
|
- [x] NIP-65: Relay List Metadata
|
||||||
- [ ] NIP-78: App specific data
|
- [ ] NIP-78: App specific data
|
||||||
- [x] NIP-102: Live Events
|
- [x] NIP-94: File header
|
||||||
|
- [x] NIP-98: HTTP Auth
|
||||||
|
|
||||||
### Running
|
### Running
|
||||||
|
|
||||||
|
@ -19,6 +19,7 @@ import {
|
|||||||
normalizeReaction,
|
normalizeReaction,
|
||||||
Reaction,
|
Reaction,
|
||||||
profileLink,
|
profileLink,
|
||||||
|
findTag,
|
||||||
} from "SnortUtils";
|
} from "SnortUtils";
|
||||||
import NoteFooter from "Element/NoteFooter";
|
import NoteFooter from "Element/NoteFooter";
|
||||||
import NoteTime from "Element/NoteTime";
|
import NoteTime from "Element/NoteTime";
|
||||||
@ -302,14 +303,21 @@ export default function Note(props: NoteProps) {
|
|||||||
|
|
||||||
const canRenderAsTextNote = [EventKind.TextNote, EventKind.Polls];
|
const canRenderAsTextNote = [EventKind.TextNote, EventKind.Polls];
|
||||||
if (!canRenderAsTextNote.includes(ev.kind)) {
|
if (!canRenderAsTextNote.includes(ev.kind)) {
|
||||||
return (
|
const alt = findTag(ev, "alt");
|
||||||
<>
|
if (alt) {
|
||||||
<h4>
|
return <div className="note-quote">
|
||||||
<FormattedMessage {...messages.UnknownEventKind} values={{ kind: ev.kind }} />
|
<Text content={alt} tags={[]} creator={ev.pubkey} />
|
||||||
</h4>
|
</div>
|
||||||
<pre>{JSON.stringify(ev, undefined, " ")}</pre>
|
} else {
|
||||||
</>
|
return (
|
||||||
);
|
<>
|
||||||
|
<h4>
|
||||||
|
<FormattedMessage {...messages.UnknownEventKind} values={{ kind: ev.kind }} />
|
||||||
|
</h4>
|
||||||
|
<pre>{JSON.stringify(ev, undefined, " ")}</pre>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function translation() {
|
function translation() {
|
||||||
@ -369,7 +377,7 @@ export default function Note(props: NoteProps) {
|
|||||||
{options.showContextMenu && (
|
{options.showContextMenu && (
|
||||||
<NoteContextMenu
|
<NoteContextMenu
|
||||||
ev={ev}
|
ev={ev}
|
||||||
react={async () => {}}
|
react={async () => { }}
|
||||||
onTranslated={t => setTranslated(t)}
|
onTranslated={t => setTranslated(t)}
|
||||||
setShowReactions={setShowReactions}
|
setShowReactions={setShowReactions}
|
||||||
/>
|
/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user