Use dTag instead of the note's address.

This commit is contained in:
KotlinGeekDev
2025-05-30 19:03:21 +01:00
parent af0061ae09
commit 0b3380ac6e
@@ -46,7 +46,7 @@ data class FollowSet(
event.privateTaggedUsers(signer) { userList -> privateFollows.addAll(userList) } event.privateTaggedUsers(signer) { userList -> privateFollows.addAll(userList) }
return if (publicFollows.isEmpty() && privateFollows.isNotEmpty()) { return if (publicFollows.isEmpty() && privateFollows.isNotEmpty()) {
FollowSet( FollowSet(
identifierTag = address.toValue(), identifierTag = dTag,
title = listTitle, title = listTitle,
description = listDescription, description = listDescription,
visibility = ListVisibility.Private, visibility = ListVisibility.Private,
@@ -54,14 +54,14 @@ data class FollowSet(
) )
} else if (publicFollows.isNotEmpty() && privateFollows.isEmpty()) { } else if (publicFollows.isNotEmpty() && privateFollows.isEmpty()) {
FollowSet( FollowSet(
identifierTag = address.toValue(), identifierTag = dTag,
title = listTitle, title = listTitle,
description = listDescription, description = listDescription,
visibility = ListVisibility.Public, visibility = ListVisibility.Public,
profileList = publicFollows.toSet(), profileList = publicFollows.toSet(),
) )
} else { } else {
throw Exception("Mixed follow sets are not yet supported.") throw Exception("Mixed follow sets are not supported.")
} }
} }
} }