mirror of https://github.com/usbharu/Hideout.git
style: fix lint
This commit is contained in:
parent
8eead0d115
commit
8264d798b8
|
@ -96,6 +96,7 @@ class APRequestServiceImpl(
|
||||||
return objectMapper.readValue(bodyAsText, responseClass)
|
return objectMapper.readValue(bodyAsText, responseClass)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Suppress("LongMethod")
|
||||||
override suspend fun <T : Object> apPost(url: String, body: T?, signer: User?): String {
|
override suspend fun <T : Object> apPost(url: String, body: T?, signer: User?): String {
|
||||||
logger.debug("START ActivityPub Request POST url: {}, signer: {}", url, signer?.url)
|
logger.debug("START ActivityPub Request POST url: {}, signer: {}", url, signer?.url)
|
||||||
val requestBody = if (body != null) {
|
val requestBody = if (body != null) {
|
||||||
|
|
|
@ -48,12 +48,12 @@ class StatusQueryServiceImpl : StatusQueryService {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return statusQueries.mapNotNull {
|
return statusQueries.mapNotNull { statusQuery ->
|
||||||
postMap[it.postId]?.copy(
|
postMap[statusQuery.postId]?.copy(
|
||||||
inReplyToId = it.replyId?.toString(),
|
inReplyToId = statusQuery.replyId?.toString(),
|
||||||
inReplyToAccountId = postMap[it.replyId]?.account?.id,
|
inReplyToAccountId = postMap[statusQuery.replyId]?.account?.id,
|
||||||
reblog = postMap[it.repostId],
|
reblog = postMap[statusQuery.repostId],
|
||||||
mediaAttachments = it.mediaIds.mapNotNull { mediaMap[it] }
|
mediaAttachments = statusQuery.mediaIds.mapNotNull { mediaMap[it] }
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue