Use dTag instead of the note's address.
This commit is contained in:
+3
-3
@@ -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.")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user