style: fix lint

This commit is contained in:
usbharu 2023-11-02 20:09:45 +09:00
parent 8eead0d115
commit 8264d798b8
2 changed files with 7 additions and 6 deletions

View File

@ -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) {

View File

@ -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] }
) )
} }
} }