Make sure to add the forked author to the p-tag of a note.

This commit is contained in:
Vitor Pamplona
2024-03-01 16:04:26 -05:00
parent cbce22c994
commit 3f500ef5b3
2 changed files with 4 additions and 2 deletions
@@ -1420,8 +1420,8 @@ class Account(
eventId = idHex, eventId = idHex,
signer = signer, signer = signer,
) { ) {
Client.send(it, relayList = relayList)
LocalCache.justConsume(it, null) LocalCache.justConsume(it, null)
Client.send(it, relayList = relayList)
} }
} }
@@ -280,7 +280,9 @@ open class NewPostViewModel() : ViewModel() {
} }
it.author?.let { it.author?.let {
if (this.pTags?.contains(it) != true) { if (this.pTags == null) {
this.pTags = listOf(it)
} else if (this.pTags?.contains(it) != true) {
this.pTags = listOf(it) + (this.pTags ?: emptyList()) this.pTags = listOf(it) + (this.pTags ?: emptyList())
} }
} }