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