mirror of https://github.com/usbharu/Hideout.git
refactor: ExposedActorRepository.ktにuri型を導入2
This commit is contained in:
parent
404ca6c531
commit
85d36e5aa2
|
@ -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",
|
||||||
|
|
|
@ -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(),
|
||||||
|
|
Loading…
Reference in New Issue