Fixes the loading of old labeled bookmarks
This commit is contained in:
+2
@@ -26,6 +26,7 @@ import com.vitorpamplona.quartz.nip01Core.relay.filters.Filter
|
|||||||
import com.vitorpamplona.quartz.nip01Core.relay.normalizer.NormalizedRelayUrl
|
import com.vitorpamplona.quartz.nip01Core.relay.normalizer.NormalizedRelayUrl
|
||||||
import com.vitorpamplona.quartz.nip51Lists.PinListEvent
|
import com.vitorpamplona.quartz.nip51Lists.PinListEvent
|
||||||
import com.vitorpamplona.quartz.nip51Lists.bookmarkList.BookmarkListEvent
|
import com.vitorpamplona.quartz.nip51Lists.bookmarkList.BookmarkListEvent
|
||||||
|
import com.vitorpamplona.quartz.nip51Lists.labeledBookmarkList.LabeledBookmarkListEvent
|
||||||
import com.vitorpamplona.quartz.nip56Reports.ReportEvent
|
import com.vitorpamplona.quartz.nip56Reports.ReportEvent
|
||||||
import com.vitorpamplona.quartz.nip62RequestToVanish.RequestToVanishEvent
|
import com.vitorpamplona.quartz.nip62RequestToVanish.RequestToVanishEvent
|
||||||
|
|
||||||
@@ -33,6 +34,7 @@ val ReportsAndBookmarksFromKeyKinds =
|
|||||||
listOf(
|
listOf(
|
||||||
ReportEvent.KIND,
|
ReportEvent.KIND,
|
||||||
BookmarkListEvent.KIND,
|
BookmarkListEvent.KIND,
|
||||||
|
LabeledBookmarkListEvent.KIND,
|
||||||
PinListEvent.KIND,
|
PinListEvent.KIND,
|
||||||
RequestToVanishEvent.KIND,
|
RequestToVanishEvent.KIND,
|
||||||
)
|
)
|
||||||
|
|||||||
+4
-1
@@ -92,7 +92,10 @@ class LabeledBookmarkListEvent(
|
|||||||
const val ALT = "A labeled list of bookmarks"
|
const val ALT = "A labeled list of bookmarks"
|
||||||
|
|
||||||
@OptIn(ExperimentalUuidApi::class)
|
@OptIn(ExperimentalUuidApi::class)
|
||||||
fun createBookmarkAddress(pubKey: HexKey) = Address(KIND, pubKey, Uuid.random().toString())
|
fun createAddress(
|
||||||
|
pubKey: HexKey,
|
||||||
|
dTag: String,
|
||||||
|
) = Address(KIND, pubKey, dTag)
|
||||||
|
|
||||||
suspend fun create(
|
suspend fun create(
|
||||||
title: String = "",
|
title: String = "",
|
||||||
|
|||||||
Reference in New Issue
Block a user