mirror of https://github.com/usbharu/Hideout.git
style: fix lint
This commit is contained in:
parent
61e61ec4bd
commit
e5f620749e
|
@ -32,7 +32,6 @@ class ExposedGenerateTimelineService(private val statusQueryService: StatusQuery
|
||||||
}
|
}
|
||||||
val result = query.withPagination(page, Timelines.id)
|
val result = query.withPagination(page, Timelines.id)
|
||||||
|
|
||||||
|
|
||||||
val statusQueries = result.map {
|
val statusQueries = result.map {
|
||||||
StatusQuery(
|
StatusQuery(
|
||||||
it[Timelines.postId],
|
it[Timelines.postId],
|
||||||
|
|
|
@ -50,7 +50,6 @@ class MongoMastodonNotificationRepositoryWrapper(
|
||||||
mongoTemplate.find(query, MastodonNotification::class.java)
|
mongoTemplate.find(query, MastodonNotification::class.java)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return PaginationList(
|
return PaginationList(
|
||||||
mastodonNotifications,
|
mastodonNotifications,
|
||||||
mastodonNotifications.firstOrNull()?.id,
|
mastodonNotifications.firstOrNull()?.id,
|
||||||
|
|
|
@ -9,6 +9,7 @@ interface StatusQueryService {
|
||||||
suspend fun findByPostIds(ids: List<Long>): List<Status>
|
suspend fun findByPostIds(ids: List<Long>): List<Status>
|
||||||
suspend fun findByPostIdsWithMediaIds(statusQueries: List<StatusQuery>): List<Status>
|
suspend fun findByPostIdsWithMediaIds(statusQueries: List<StatusQuery>): List<Status>
|
||||||
|
|
||||||
|
@Suppress("LongParameterList")
|
||||||
suspend fun accountsStatus(
|
suspend fun accountsStatus(
|
||||||
accountId: Long,
|
accountId: Long,
|
||||||
onlyMedia: Boolean = false,
|
onlyMedia: Boolean = false,
|
||||||
|
|
|
@ -20,6 +20,7 @@ import kotlin.math.min
|
||||||
@Suppress("TooManyFunctions")
|
@Suppress("TooManyFunctions")
|
||||||
interface AccountApiService {
|
interface AccountApiService {
|
||||||
|
|
||||||
|
@Suppress("ongParameterList")
|
||||||
suspend fun accountsStatuses(
|
suspend fun accountsStatuses(
|
||||||
userid: Long,
|
userid: Long,
|
||||||
onlyMedia: Boolean,
|
onlyMedia: Boolean,
|
||||||
|
|
Loading…
Reference in New Issue