mirror of https://github.com/usbharu/Hideout.git
style: fix lint (CI)
This commit is contained in:
parent
d9b51d44e1
commit
a1cef4657e
|
@ -69,4 +69,4 @@ class GetActorDetailApplicationService(
|
||||||
data class GetActorDetail(
|
data class GetActorDetail(
|
||||||
val actorName: Acct? = null,
|
val actorName: Acct? = null,
|
||||||
val id: Long? = null
|
val id: Long? = null
|
||||||
)
|
)
|
||||||
|
|
|
@ -52,4 +52,4 @@ class GetUserDetailApplicationService(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
data class GetUserDetail(val id: Long)
|
data class GetUserDetail(val id: Long)
|
||||||
|
|
|
@ -75,4 +75,4 @@ class MigrationLocalActorApplicationService(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
data class MigrationLocalActor(val from: Long, val to: Long)
|
data class MigrationLocalActor(val from: Long, val to: Long)
|
||||||
|
|
|
@ -80,4 +80,4 @@ class RegisterLocalActorApplicationService(
|
||||||
data class RegisterLocalActor(
|
data class RegisterLocalActor(
|
||||||
val name: String,
|
val name: String,
|
||||||
val password: String,
|
val password: String,
|
||||||
)
|
)
|
||||||
|
|
|
@ -46,4 +46,4 @@ class StartDeleteLocalActorApplicationService(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
data class DeleteLocalActor(val actorId: ActorId)
|
data class DeleteLocalActor(val actorId: ActorId)
|
||||||
|
|
|
@ -43,4 +43,4 @@ class SuspendLocalActorApplicationService(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
data class SuspendLocalActor(val actorId: Long)
|
data class SuspendLocalActor(val actorId: Long)
|
||||||
|
|
|
@ -43,4 +43,4 @@ class UnsuspendLocalActorApplicationService(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
data class UnsuspendLocalActor(val actorId: Long)
|
data class UnsuspendLocalActor(val actorId: Long)
|
||||||
|
|
|
@ -108,4 +108,4 @@ data class RegisterApplication(
|
||||||
val redirectUris: Set<URI>,
|
val redirectUris: Set<URI>,
|
||||||
val useRefreshToken: Boolean,
|
val useRefreshToken: Boolean,
|
||||||
val scopes: Set<String>,
|
val scopes: Set<String>,
|
||||||
)
|
)
|
||||||
|
|
|
@ -45,4 +45,4 @@ class UserDeleteFilterApplicationService(private val filterRepository: FilterRep
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
data class DeleteFilter(val filterId: Long)
|
data class DeleteFilter(val filterId: Long)
|
||||||
|
|
|
@ -46,4 +46,4 @@ class UserGetFilterApplicationService(private val filterRepository: FilterReposi
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
data class GetFilter(val filterId: Long)
|
data class GetFilter(val filterId: Long)
|
||||||
|
|
|
@ -72,4 +72,4 @@ data class RegisterFilter(
|
||||||
data class RegisterFilterKeyword(
|
data class RegisterFilterKeyword(
|
||||||
val keyword: String,
|
val keyword: String,
|
||||||
val filterMode: FilterMode,
|
val filterMode: FilterMode,
|
||||||
)
|
)
|
||||||
|
|
|
@ -80,4 +80,4 @@ data class UploadMedia(
|
||||||
val name: String,
|
val name: String,
|
||||||
val remoteUri: URI?,
|
val remoteUri: URI?,
|
||||||
val description: String?
|
val description: String?
|
||||||
)
|
)
|
||||||
|
|
|
@ -51,4 +51,4 @@ class DeleteLocalPostApplicationService(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
data class DeleteLocalPost(val postId: Long)
|
data class DeleteLocalPost(val postId: Long)
|
||||||
|
|
|
@ -115,4 +115,4 @@ class GetPostDetailApplicationService(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
data class GetPostDetail(val postId: Long)
|
data class GetPostDetail(val postId: Long)
|
||||||
|
|
|
@ -74,4 +74,4 @@ data class RegisterLocalPost(
|
||||||
val replyId: Long?,
|
val replyId: Long?,
|
||||||
val sensitive: Boolean,
|
val sensitive: Boolean,
|
||||||
val mediaIds: List<Long>,
|
val mediaIds: List<Long>,
|
||||||
)
|
)
|
||||||
|
|
|
@ -71,4 +71,4 @@ data class UpdateLocalNote(
|
||||||
val content: String,
|
val content: String,
|
||||||
val sensitive: Boolean,
|
val sensitive: Boolean,
|
||||||
val mediaIds: List<Long>
|
val mediaIds: List<Long>
|
||||||
)
|
)
|
||||||
|
|
|
@ -80,4 +80,4 @@ class UserCreateReactionApplicationService(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
data class CreateReaction(val postId: Long, val customEmojiId: Long?, val unicodeEmoji: String)
|
data class CreateReaction(val postId: Long, val customEmojiId: Long?, val unicodeEmoji: String)
|
||||||
|
|
|
@ -70,4 +70,4 @@ data class RemoveReaction(
|
||||||
val postId: Long,
|
val postId: Long,
|
||||||
val customEmojiId: Long?,
|
val customEmojiId: Long?,
|
||||||
val unicodeEmoji: String
|
val unicodeEmoji: String
|
||||||
)
|
)
|
||||||
|
|
|
@ -71,4 +71,4 @@ class GetRelationshipApplicationService(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
data class GetRelationship(val targetActorId: Long)
|
data class GetRelationship(val targetActorId: Long)
|
||||||
|
|
|
@ -52,4 +52,4 @@ class UserAcceptFollowRequestApplicationService(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
data class AcceptFollowRequest(val sourceActorId: Long)
|
data class AcceptFollowRequest(val sourceActorId: Long)
|
||||||
|
|
|
@ -62,4 +62,4 @@ class UserBlockApplicationService(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
data class Block(val targetActorId: Long)
|
data class Block(val targetActorId: Long)
|
||||||
|
|
|
@ -57,4 +57,4 @@ class UserFollowRequestApplicationService(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
data class FollowRequest(val targetActorId: Long)
|
data class FollowRequest(val targetActorId: Long)
|
||||||
|
|
|
@ -54,4 +54,4 @@ class UserMuteApplicationService(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
data class Mute(val targetActorId: Long)
|
data class Mute(val targetActorId: Long)
|
||||||
|
|
|
@ -52,4 +52,4 @@ class UserRejectFollowRequestApplicationService(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
data class RejectFollowRequest(val sourceActorId: Long)
|
data class RejectFollowRequest(val sourceActorId: Long)
|
||||||
|
|
|
@ -54,4 +54,4 @@ class UserRemoveFromFollowersApplicationService(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
data class RemoveFromFollowers(val targetActorId: Long)
|
data class RemoveFromFollowers(val targetActorId: Long)
|
||||||
|
|
|
@ -54,4 +54,4 @@ class UserUnblockApplicationService(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
data class Unblock(val targetActorId: Long)
|
data class Unblock(val targetActorId: Long)
|
||||||
|
|
|
@ -54,4 +54,4 @@ class UserUnfollowApplicationService(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
data class Unfollow(val targetActorId: Long)
|
data class Unfollow(val targetActorId: Long)
|
||||||
|
|
|
@ -54,4 +54,4 @@ class UserUnmuteApplicationService(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
data class Unmute(val targetActorId: Long)
|
data class Unmute(val targetActorId: Long)
|
||||||
|
|
|
@ -69,4 +69,4 @@ class GetUserTimelineApplicationService(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
data class GetUserTimeline(val id: Long, val page: Page)
|
data class GetUserTimeline(val id: Long, val page: Page)
|
||||||
|
|
|
@ -112,4 +112,4 @@ data class ReadTimeline(
|
||||||
val localOnly: Boolean,
|
val localOnly: Boolean,
|
||||||
val remoteOnly: Boolean,
|
val remoteOnly: Boolean,
|
||||||
val page: Page
|
val page: Page
|
||||||
)
|
)
|
||||||
|
|
|
@ -46,4 +46,4 @@ class SetTimelineToTimelineStoreApplicationService(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
data class SetTimleineStore(val timelineId: TimelineId)
|
data class SetTimleineStore(val timelineId: TimelineId)
|
||||||
|
|
|
@ -45,4 +45,4 @@ class TimelineAddPostApplicationService(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
data class AddPost(val postId: PostId)
|
data class AddPost(val postId: PostId)
|
||||||
|
|
|
@ -69,4 +69,4 @@ data class AddTimelineRelationship(
|
||||||
val timelineId: TimelineId,
|
val timelineId: TimelineId,
|
||||||
val actorId: ActorId,
|
val actorId: ActorId,
|
||||||
val visible: Visible
|
val visible: Visible
|
||||||
)
|
)
|
||||||
|
|
|
@ -52,4 +52,4 @@ class UserGetTimelinesApplicationService(transaction: Transaction, private val t
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
data class GetTimelines(val userDetailId: Long)
|
data class GetTimelines(val userDetailId: Long)
|
||||||
|
|
|
@ -52,4 +52,4 @@ class UserRegisterTimelineApplicationService(
|
||||||
data class RegisterTimeline(
|
data class RegisterTimeline(
|
||||||
val timelineName: String,
|
val timelineName: String,
|
||||||
val visibility: TimelineVisibility
|
val visibility: TimelineVisibility
|
||||||
)
|
)
|
||||||
|
|
|
@ -60,4 +60,4 @@ class UserRemoveTimelineRelationshipApplicationService(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
data class RemoveTimelineRelationship(val timelineRelationshipId: TimelineRelationshipId)
|
data class RemoveTimelineRelationship(val timelineRelationshipId: TimelineRelationshipId)
|
||||||
|
|
|
@ -58,10 +58,10 @@ class ExposedUserTimelineQueryService : UserTimelineQueryService, AbstractReposi
|
||||||
.select(Posts.columns)
|
.select(Posts.columns)
|
||||||
.where {
|
.where {
|
||||||
Posts.visibility eq Visibility.PUBLIC.name or
|
Posts.visibility eq Visibility.PUBLIC.name or
|
||||||
(Posts.visibility eq Visibility.UNLISTED.name) or
|
(Posts.visibility eq Visibility.UNLISTED.name) or
|
||||||
(Posts.visibility eq Visibility.DIRECT.name and (PostsVisibleActors.actorId eq principal.actorId.id)) or
|
(Posts.visibility eq Visibility.DIRECT.name and (PostsVisibleActors.actorId eq principal.actorId.id)) or
|
||||||
(Posts.visibility eq Visibility.FOLLOWERS.name and (Relationships.blocking eq false and (relationshipsAlias[Relationships.following] eq true))) or
|
(Posts.visibility eq Visibility.FOLLOWERS.name and (Relationships.blocking eq false and (relationshipsAlias[Relationships.following] eq true))) or
|
||||||
(Posts.actorId eq principal.actorId.id)
|
(Posts.actorId eq principal.actorId.id)
|
||||||
}
|
}
|
||||||
.alias("authorized_table")
|
.alias("authorized_table")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue