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)
|
||||
}
|
||||
|
||||
@Suppress("LongMethod")
|
||||
override suspend fun <T : Object> apPost(url: String, body: T?, signer: User?): String {
|
||||
logger.debug("START ActivityPub Request POST url: {}, signer: {}", url, signer?.url)
|
||||
val requestBody = if (body != null) {
|
||||
|
|
|
@ -48,12 +48,12 @@ class StatusQueryServiceImpl : StatusQueryService {
|
|||
}
|
||||
}
|
||||
|
||||
return statusQueries.mapNotNull {
|
||||
postMap[it.postId]?.copy(
|
||||
inReplyToId = it.replyId?.toString(),
|
||||
inReplyToAccountId = postMap[it.replyId]?.account?.id,
|
||||
reblog = postMap[it.repostId],
|
||||
mediaAttachments = it.mediaIds.mapNotNull { mediaMap[it] }
|
||||
return statusQueries.mapNotNull { statusQuery ->
|
||||
postMap[statusQuery.postId]?.copy(
|
||||
inReplyToId = statusQuery.replyId?.toString(),
|
||||
inReplyToAccountId = postMap[statusQuery.replyId]?.account?.id,
|
||||
reblog = postMap[statusQuery.repostId],
|
||||
mediaAttachments = statusQuery.mediaIds.mapNotNull { mediaMap[it] }
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue