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 thubnail: ImageMediaProcessorThumbnailConfiguration?,
|
||||||
val supportedType: List<String>?,
|
val supportedType: List<String>?,
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
data class ImageMediaProcessorThumbnailConfiguration(
|
data class ImageMediaProcessorThumbnailConfiguration(
|
||||||
val generate: Boolean,
|
val generate: Boolean,
|
||||||
|
|
|
@ -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],
|
||||||
|
|
|
@ -87,7 +87,7 @@ class StatusQueryServiceImpl : StatusQueryService {
|
||||||
}
|
}
|
||||||
|
|
||||||
val pairs = query
|
val pairs = query
|
||||||
.withPagination(page,Posts.id)
|
.withPagination(page, Posts.id)
|
||||||
.groupBy { it[Posts.id] }
|
.groupBy { it[Posts.id] }
|
||||||
.map { it.value }
|
.map { it.value }
|
||||||
.map {
|
.map {
|
||||||
|
|
|
@ -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,
|
||||||
|
@ -87,7 +88,7 @@ class AccountApiServiceImpl(
|
||||||
): PaginationList<Status, Long> {
|
): PaginationList<Status, Long> {
|
||||||
val canViewFollowers = if (loginUser == null) {
|
val canViewFollowers = if (loginUser == null) {
|
||||||
false
|
false
|
||||||
}else if(loginUser == userid) {
|
} else if (loginUser == userid) {
|
||||||
true
|
true
|
||||||
} else {
|
} else {
|
||||||
transaction.transaction {
|
transaction.transaction {
|
||||||
|
|
Loading…
Reference in New Issue