implement a fix for when a follow set becomes empty(or is empty), which is probably a Nostr limitation.

This commit is contained in:
KotlinGeekDev
2025-09-22 15:44:11 +01:00
parent 1e18edfc02
commit 3eb02cbbd8

View File

@@ -65,7 +65,15 @@ data class FollowSet(
profileList = publicFollows.toSet(),
)
} else {
throw Exception("Mixed follow sets are not supported.")
// Follow set is empty, so assume public. Why? Nostr limitation.
// TODO: Could this be fixed at protocol level?
FollowSet(
identifierTag = dTag,
title = listTitle,
description = listDescription,
visibility = ListVisibility.Public,
profileList = publicFollows.toSet(),
)
}
}
}