Avoids creating User for all awardees of a badge.
This commit is contained in:
@@ -270,7 +270,6 @@ object LocalCache {
|
|||||||
// Log.d("TN", "New Boost (${notes.size},${users.size}) ${note.author?.toBestDisplayName()} ${formattedDateTime(event.createdAt)}")
|
// Log.d("TN", "New Boost (${notes.size},${users.size}) ${note.author?.toBestDisplayName()} ${formattedDateTime(event.createdAt)}")
|
||||||
|
|
||||||
val author = getOrCreateUser(event.pubKey)
|
val author = getOrCreateUser(event.pubKey)
|
||||||
val awardees = event.awardees().mapNotNull { checkGetOrCreateUser(it) }
|
|
||||||
val awardDefinition = event.awardDefinition().map { getOrCreateAddressableNote(it) }
|
val awardDefinition = event.awardDefinition().map { getOrCreateAddressableNote(it) }
|
||||||
|
|
||||||
note.loadEvent(event, author, awardDefinition)
|
note.loadEvent(event, author, awardDefinition)
|
||||||
|
|||||||
Reference in New Issue
Block a user