refactor: ExposedActorRepository.ktにuri型を導入2

This commit is contained in:
usbharu 2024-09-11 18:08:46 +09:00
parent 404ca6c531
commit 85d36e5aa2
Signed by: usbharu
GPG Key ID: 6556747BF94EEBC8
2 changed files with 6 additions and 6 deletions

View File

@ -50,7 +50,7 @@ class ExposedAccountQueryServiceImpl(private val applicationConfig: ApplicationC
id = resultRow[Actors.id].toString(), id = resultRow[Actors.id].toString(),
username = resultRow[Actors.name], username = resultRow[Actors.name],
acct = "${resultRow[Actors.name]}@${resultRow[Actors.domain]}", acct = "${resultRow[Actors.name]}@${resultRow[Actors.domain]}",
url = resultRow[Actors.url], url = resultRow[Actors.url].toString(),
displayName = resultRow[Actors.screenName], displayName = resultRow[Actors.screenName],
note = resultRow[Actors.description], note = resultRow[Actors.description],
avatar = "$userUrl/icon.jpg", avatar = "$userUrl/icon.jpg",

View File

@ -225,13 +225,13 @@ private fun toStatus(it: ResultRow, queryAlias: QueryAlias, inReplyToAlias: Alia
id = it[Actors.id].toString(), id = it[Actors.id].toString(),
username = it[Actors.name], username = it[Actors.name],
acct = "${it[Actors.name]}@${it[Actors.domain]}", acct = "${it[Actors.name]}@${it[Actors.domain]}",
url = it[Actors.url], url = it[Actors.url].toString(),
displayName = it[Actors.screenName], displayName = it[Actors.screenName],
note = it[Actors.description], note = it[Actors.description],
avatar = it[Actors.url] + "/icon.jpg", avatar = "${it[Actors.url]}/icon.jpg",
avatarStatic = it[Actors.url] + "/icon.jpg", avatarStatic = "${it[Actors.url]}/icon.jpg",
header = it[Actors.url] + "/header.jpg", header = "${it[Actors.url]}/header.jpg",
headerStatic = it[Actors.url] + "/header.jpg", headerStatic = "${it[Actors.url]}/header.jpg",
locked = it[Actors.locked], locked = it[Actors.locked],
fields = emptyList(), fields = emptyList(),
emojis = emptyList(), emojis = emptyList(),