Skip to content

metadata does not store tags/custom content fields #438

@PatrickGeyer

Description

@PatrickGeyer

Describe the bug
Metadata object does not store tags or custom content:

  /// convert to nip01 event
  Nip01Event toEvent() {
    return Nip01Event(
        pubKey: pubKey,
        content: jsonEncode(toJson()),
        kind: kKind,
        tags: [],
        createdAt: updatedAt ?? 0);
  }

Is it impossible to use the metadata usecase to fetch profiles that store other content fields?
Say if I want a custom field or tag on the metadata event, and I want to use NDKs caching mechanism for metadata, I suppose that's impossible.

Until recently, nostr-protocol/nips#2216, NIP-39 allowed us to store external identities on "i" tags on metadata, but using NDKs metadata functionality strip that information.

Are there any plans to store the raw/complete metadata or will it always be the stripped down version?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtoTriage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions