kernl API
    Preparing search index...

    Function preferenceTemplate

    • The next version of the user's preferences for an archetype, with one handler moved to the front of the archetype-wide entries.

      Every other tag and the encrypted private entries are carried over as they were, so the shell never drops a choice it could not read.

      Parameters

      • previous: NostrEvent | undefined

        The current event, when there is one.

      • archetype: string

        The archetype slug.

      • catalogId: string

        The handler the user chose.

      • now: number

        Seconds since the epoch.

      Returns EventTemplate | undefined

      The event to sign, or undefined when the id has no reference form.

      preferenceTemplate(current, 'profile', candidate.id, Math.floor(Date.now() / 1000));