mirror of https://github.com/usbharu/Hideout.git
Apply suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
6268850a5b
commit
e11872aac5
|
@ -46,7 +46,6 @@ class ExposedTimelineRepository(private val idGenerateService: IdGenerateService
|
|||
it[isLocal] = timeline.isLocal
|
||||
it[isPureRepost] = timeline.isPureRepost
|
||||
it[mediaIds] = timeline.mediaIds.joinToString(",")
|
||||
|
||||
}
|
||||
}
|
||||
return timeline
|
||||
|
|
|
@ -45,7 +45,8 @@ class ExposedGenerateTimelineService(private val statusQueryService: StatusQuery
|
|||
it[Timelines.postId],
|
||||
it[Timelines.replyId],
|
||||
it[Timelines.repostId],
|
||||
it[Timelines.mediaIds].split(",").mapNotNull { it.toLongOrNull() })
|
||||
it[Timelines.mediaIds].split(",").mapNotNull { it.toLongOrNull() }
|
||||
)
|
||||
}
|
||||
|
||||
return statusQueryService.findByPostIdsWithMediaIds(statusQueries)
|
||||
|
|
Loading…
Reference in New Issue