NIP-96 sign payload, content field for file caption (#148)

* content in upload response for file caption as in NIP-94, optional signing of file payload in NIP-98 header

* Content in NIP-94 as well
This commit is contained in:
Cronus
2024-09-19 21:33:02 +07:00
committed by GitHub
parent 0b2b69529b
commit c8c295f839
4 changed files with 20 additions and 4 deletions

View File

@ -51,6 +51,7 @@ type FileMetadata struct {
TorrentInfoHash string
Blurhash string
Thumb string
Content string
}
func (fm FileMetadata) IsVideo() bool { return strings.Split(fm.M, "/")[0] == "video" }