502 Commits

Author SHA1 Message Date
renovate[bot] 5417299c16 fix(deps): update jackson monorepo to v2.19.2 (#742)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-05 21:21:26 +00:00
renovate[bot] 46232fb315 fix(deps): update grpc-java monorepo to v1.74.0 (#741)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-05 21:20:43 +00:00
renovate[bot] 097574c5b6 fix(deps): update dependency com.fasterxml.jackson.dataformat:jackson-dataformat-xml to v2.19.2 (#708)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-05 21:19:57 +00:00
renovate[bot] 4aa0df1790 fix(deps): update ktor monorepo to v3.2.3 (#743)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-05 21:18:42 +00:00
renovate[bot] e3c9c60427 fix(deps): update tika monorepo to v3.2.1 (#745)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-05 18:03:12 +00:00
renovate[bot] ea1de67a13 fix(deps): update exposed to v0.61.0 (#740)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-05 18:01:35 +00:00
renovate[bot] be548d55aa fix(deps): update dependency org.jetbrains.kotlin:kotlin-test-junit to v2.2.0 (#737)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-05 17:55:17 +00:00
renovate[bot] 56bc8d3d27 fix(deps): update protobuf monorepo to v4.31.1 (#744)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-05 17:55:00 +00:00
renovate[bot] 6b00c9d626 chore(deps): update plugin openapi-generator to v7.14.0 (#733)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-05 17:54:46 +00:00
renovate[bot] 9ff29be365 fix(deps): update dependency org.mongodb:mongodb-driver-kotlin-coroutine to v5.5.1 (#739)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-05 17:54:34 +00:00
renovate[bot] 22be156bc7 fix(deps): update dependency io.insert-koin:koin-bom to v4.1.0 (#735)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-05 17:54:17 +00:00
renovate[bot] 4e29b8a4e6 fix(deps): update dependency org.apache.logging.log4j:log4j-slf4j2-impl to v2.25.1 (#736)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-05 17:54:00 +00:00
renovate[bot] 2080ba8154 chore(deps): update kotlin to v2.2.0 (#732)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-05 17:53:44 +00:00
renovate[bot] 660668c2fa chore(deps): update plugin spring-boot to v3.5.4 (#734)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-05 17:53:30 +00:00
renovate[bot] 8865ed8ecb fix(deps): update dependency org.postgresql:postgresql to v42.7.7 (#730)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-05 17:53:09 +00:00
renovate[bot] 733e947660 fix(deps): update swagger to v2.2.35 (#731)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-05 17:52:54 +00:00
renovate[bot] 36374b4bf8 fix(deps): update dependency org.bytedeco:javacv to v1.5.12 (#729)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-05 17:52:28 +00:00
renovate[bot] 80fb6f9eea chore(deps): update dependency gradle to v8.14.3 (#725)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-05 17:51:46 +00:00
renovate[bot] 229720ebf0 fix(deps): update dependency org.junit.jupiter:junit-jupiter to v5.13.4 (#738)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-05 17:51:00 +00:00
renovate[bot] 7392e6a5ac chore(deps): update mongo docker tag to v8.0.12 (#728)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-05 17:46:47 +00:00
renovate[bot] 5d4117bb21 chore(deps): update docker.elastic.co/kibana/kibana docker tag to v7.17.29 (#727)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-05 17:46:38 +00:00
renovate[bot] b681c1c1e2 chore(deps): update docker.elastic.co/elasticsearch/elasticsearch docker tag to v7.17.29 (#726)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-05 17:46:28 +00:00
usbharu 0583909749 Merge pull request #710 from usbharu/fix/message-source
fix: 言語ファイルが読み込めない問題を修正
2025-05-13 15:56:42 +09:00
usbharu e95c5078a3 style: fix lint (CI) 2025-05-13 06:52:32 +00:00
usbharu 8b4167d847 fix: 言語ファイルが読み込めない問題を修正
MessageSourceが正常に構成されず、言語ファイルが読み込めずに表示される問題を修正
2025-05-13 15:45:43 +09:00
usbharu 98385c6b82 Revert "wip"
This reverts commit e28b8f0d6c.
2025-05-13 14:54:40 +09:00
renovate[bot] 83cff53fac fix(deps): update dependency co.elastic.logging:logback-ecs-encoder to v1.7.0 (#707)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-12 02:55:28 +00:00
renovate[bot] e7f4e46a73 chore(deps): update dependency gradle to v8.14 (#705)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-11 22:47:03 +00:00
renovate[bot] 8138c2a76d chore(deps): update plugin org.gradle.toolchains.foojay-resolver-convention to v0.10.0 (#706)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-11 22:46:45 +00:00
renovate[bot] b4035bebcf fix(deps): update swagger to v2.2.30 (#704)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-11 16:37:51 +00:00
renovate[bot] 1d6fbaca90 fix(deps): update ktor monorepo to v3.1.3 (#703)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-11 16:37:27 +00:00
usbharu e28b8f0d6c wip 2025-05-12 01:30:23 +09:00
renovate[bot] ac2a8e4da2 fix(deps): update kotlinx-coroutines monorepo to v1.10.2 (#702)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-11 15:31:13 +00:00
renovate[bot] 91aa7c7def fix(deps): update grpc.kotlin to v1.4.3 (#701)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-11 15:30:49 +00:00
usbharu 578ed2d8fe Merge pull request #700 from usbharu/feature/post-auto-truncate
Feature/post auto truncate
2025-05-12 00:24:21 +09:00
usbharu 516147252b style: fix lint (CI) 2025-05-11 15:20:44 +00:00
usbharu c88ff0b3fe fix: 正常に永続化されるように 2025-05-12 00:12:57 +09:00
usbharu 3c604abe37 feat: persistence truncation
Postが切り詰められたかを永続化するように
2025-05-11 23:59:06 +09:00
usbharu adf1dfc1f3 feat: post content auto truncate
Postのcontentとtextを自動で制限文字数内に切り取るように
2025-05-11 23:09:25 +09:00
renovate[bot] a935537332 fix(deps): update dependency io.insert-koin:koin-bom to v4.0.4 (#697)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-11 13:51:29 +00:00
renovate[bot] 4a6deacb7e fix(deps): update dependency org.junit.jupiter:junit-jupiter to v5.12.2 (#698)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-11 13:49:29 +00:00
renovate[bot] 2ce08e0430 fix(deps): update grpc-java monorepo to v1.72.0 (#695)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-11 11:29:38 +00:00
renovate[bot] dddbc8e4db chore(deps): update plugin spring-boot to v3.4.5 (#696)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-11 11:28:34 +00:00
renovate[bot] b0cc7c9df5 chore(deps): update mongo docker tag to v8.0.9 (#694)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-11 11:22:10 +00:00
usbharu f995f44c15 Merge pull request #693 from usbharu/grpc-update
chore: update grpc
2025-05-11 20:20:51 +09:00
usbharu 10767d01c6 chore: update grpc 2025-05-11 20:05:03 +09:00
renovate[bot] 063d8f1359 chore(deps): update mongo docker tag to v8.0.8 (#691)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-28 03:07:04 +00:00
renovate[bot] 88f3bfbc7a chore(deps): update kotlin to v2.1.20 (#690)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-27 22:59:43 +00:00
renovate[bot] 7e08beb352 chore(deps): update plugin openapi-generator to v7.13.0 (#689)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-27 19:18:17 +00:00
renovate[bot] 1728ea863a chore(deps): update dependency gradle to v8.13 (#688)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-25 22:13:21 +00:00
renovate[bot] 9baefbc73f fix(deps): update dependency org.slf4j:slf4j-api to v2.0.17 (#687)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-25 19:31:33 +00:00
renovate[bot] 04c2931863 chore(deps): update docker.elastic.co/kibana/kibana docker tag to v7.17.28 (#686)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-25 15:48:54 +00:00
renovate[bot] 285cc7fbd6 chore(deps): update docker.elastic.co/elasticsearch/elasticsearch docker tag to v7.17.28 (#685)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-25 12:00:26 +00:00
usbharu f49bec3252 Merge pull request #684 from usbharu/nodeinfo
Nodeinfoを実装
2025-02-25 11:44:48 +09:00
usbharu 8f3286d745 style: fix lint 2025-02-25 11:30:38 +09:00
usbharu 5e073233da style: fix lint (CI) 2025-02-25 02:22:07 +00:00
usbharu 6819c8d847 Merge branch 'develop' into nodeinfo 2025-02-25 11:20:36 +09:00
usbharu ff6da7174b test: テストを追加2 2025-02-25 11:13:54 +09:00
usbharu 8c14a966aa test: テストを追加 2025-02-25 11:06:06 +09:00
renovate[bot] 0e6a17be79 chore(deps): update mongo docker tag to v8.0.5 (#683)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-25 02:05:11 +00:00
renovate[bot] 6044796043 fix(deps): update ktor monorepo to v3.1.1 (#682)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-24 22:10:07 +00:00
usbharu 5ac1e3b267 feat: nodeinfoのusageを文字から数字に 2025-02-25 00:03:02 +09:00
usbharu 4c026fb243 feat: /nodeinfo/2.0,/nodeinfo/2.1を作成 2025-02-24 23:56:59 +09:00
usbharu 4be93fea86 feat: /.well-known/nodeinfoを作成 2025-02-24 23:42:46 +09:00
renovate[bot] ac5dee2551 fix(deps): update dependency org.junit.jupiter:junit-jupiter to v5.12.0 (#681)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-21 15:30:04 +00:00
renovate[bot] c1b20f01c1 chore(deps): update plugin spring-boot to v3.4.3 (#680)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-20 18:48:42 +00:00
usbharu f43507383e Merge pull request #679 from usbharu/webfinger
Webfinger
2025-02-19 13:19:58 +09:00
usbharu 043d6422f0 Merge remote-tracking branch 'origin/webfinger' into webfinger 2025-02-19 13:17:09 +09:00
usbharu 206b7fdbf5 test: fix test 2025-02-19 13:16:58 +09:00
usbharu 26f84da964 style: fix lint (CI) 2025-02-19 04:12:13 +00:00
usbharu d696494100 test: テストを追加2 2025-02-19 13:06:41 +09:00
usbharu 17cc92d344 test: テストを追加 2025-02-19 12:43:40 +09:00
usbharu c37e442dd7 feat: WebFingerを実装 2025-02-19 12:33:52 +09:00
usbharu ecdbf74e57 refactor: WebHostMetadataをXRDに変更 2025-02-19 12:33:17 +09:00
usbharu 26b9d640b5 Merge pull request #678 from usbharu/host-meta
Web Host Metadata(host-meta)を実装
2025-02-18 17:07:59 +09:00
usbharu fac35ba604 style: fix lint (CI) 2025-02-18 08:04:49 +00:00
usbharu e4ebc0bc4e test: テストを追加 2025-02-18 16:58:44 +09:00
usbharu 124dcd6050 feat: 動的に生成できるように 2025-02-18 16:52:42 +09:00
usbharu 253e25e51d feat: host-metaを返せるように 2025-02-18 16:44:51 +09:00
usbharu 4679995144 chore: jackson-xmlを追加 2025-02-18 16:44:00 +09:00
renovate[bot] 1f34792a1d fix(deps): update dependency com.github.jsonld-java:jsonld-java to v0.13.6 (#677)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-16 03:18:53 +00:00
usbharu fdcf58fca9 Merge pull request #676 from usbharu/activitypub
Activitypub-actor-get
2025-02-16 12:12:26 +09:00
usbharu e75fc0cc38 style: fix lint (CI) 2025-02-16 03:01:41 +00:00
usbharu 5fd181a339 style: fix lint 2025-02-16 11:57:35 +09:00
usbharu 5e5bbe756b style: fix lint (CI) 2025-02-14 09:36:05 +00:00
usbharu 27cf8227ea Merge branch 'develop' into activitypub 2025-02-14 18:28:50 +09:00
usbharu 8bf1fe06a8 test: テストを追加 2025-02-14 18:25:58 +09:00
usbharu d4157a3b38 feat: /users/:usernameにアクセスすることでActivityを得られるように 2025-02-14 17:48:39 +09:00
usbharu 98964cc656 feat: ActorをJSONに変換する処理を追加 2025-02-14 17:47:05 +09:00
usbharu ae0e4a4013 fix: Spring Securityが正常に動作していなかったので修正 2025-02-14 17:45:13 +09:00
renovate[bot] a65c46f32c fix(deps): update ktor monorepo to v3.1.0 (#675)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-11 20:15:37 +00:00
renovate[bot] 6f88d64b82 fix(deps): update exposed to v0.59.0 (#674)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-05 02:41:17 +00:00
renovate[bot] ced61dd5bd fix(deps): update dependency jakarta.validation:jakarta.validation-api to v3.1.1 (#673)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-02 09:57:39 +00:00
renovate[bot] e4ff5e3d57 fix(deps): update dependency org.apache.tika:tika-core to v3.1.0 (#672)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-01 16:00:18 +00:00
renovate[bot] 1fdbb879b3 chore(deps): update kotlin to v2.1.10 (#670)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-27 09:52:42 +00:00
renovate[bot] 92e88078ab fix(deps): update dependency org.jetbrains.kotlin:kotlin-test-junit to v2.1.10 (#671)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-27 09:52:15 +00:00
usbharu e19a165be4 Merge branch 'develop' into activitypub 2025-01-25 10:54:25 +09:00
usbharu af0c3d0149 activity-streams-serialization 0.5.0 2025-01-25 10:28:52 +09:00
renovate[bot] df1792781c chore(deps): update dependency gradle to v8.12.1 (#669)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-24 18:28:05 +00:00
usbharu f036febf5c wip 2025-01-24 13:52:35 +09:00
renovate[bot] 50a0648a14 fix(deps): update protobuf monorepo to v4.29.3 (#668)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-24 01:40:15 +00:00
renovate[bot] 0cb7c25703 fix(deps): update dependency org.mongodb:mongodb-driver-kotlin-coroutine to v5.3.1 (#667)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-23 22:02:08 +00:00
renovate[bot] fc70635e2d chore(deps): update plugin spring-boot to v3.4.2 (#666)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-23 22:01:26 +00:00
usbharu 334462d402 feat: 既存のActivityPub用モデルを削除しactivity-streams-serializationに置き換え 2025-01-22 23:43:39 +09:00
renovate[bot] 522bac6e6b fix(deps): update dependency io.insert-koin:koin-bom to v4.0.2 (#664)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-21 18:03:03 +00:00
usbharu a7e9ee1f37 Merge pull request #663 from usbharu/fix-spring-authorization-server
fix: #654 Spring Authorization ServerのSecurityFIlterChainの設定方法が変わっている
2025-01-22 00:06:35 +09:00
usbharu 1e3dab503a style: fix lint (CI) 2025-01-21 15:02:44 +00:00
usbharu 0e66d5a49a fix: #654 Spring Authorization ServerのSecurityFIlterChainの設定方法が変わっている 2025-01-21 23:56:36 +09:00
renovate[bot] 0a8595330b chore(deps): update plugin openapi-generator to v7.11.0 (#662)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-20 17:55:39 +00:00
renovate[bot] 1493dee67a fix(deps): update grpc-java monorepo to v1.69.1 (#661)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-17 01:32:35 +00:00
renovate[bot] 2ef645e351 fix(deps): update swagger to v2.2.28 (#660)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-16 17:57:57 +00:00
renovate[bot] 9195c7892d fix(deps): update dependency org.postgresql:postgresql to v42.7.5 (#659)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-14 23:48:30 +00:00
renovate[bot] 8e8e588d53 chore(deps): update docker.elastic.co/kibana/kibana docker tag to v7.17.27 (#658)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-14 17:03:15 +00:00
renovate[bot] cf35c46e71 chore(deps): update docker.elastic.co/elasticsearch/elasticsearch docker tag to v7.17.27 (#657)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-14 17:03:06 +00:00
renovate[bot] fa4a3c2c19 fix(deps): update exposed to v0.58.0 (#656)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-13 13:52:25 +00:00
renovate[bot] 915562de4b fix(deps): update dependency org.mongodb:mongodb-driver-kotlin-coroutine to v5.3.0 (#655)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-10 22:18:02 +00:00
usbharu f727bb0ae5 Merge pull request #653 from usbharu/renovate/major-tika-monorepo
fix(deps): update tika monorepo to v3 (major)
2025-01-10 14:27:21 +09:00
usbharu 48add4530a Merge branch 'develop' into renovate/major-tika-monorepo 2025-01-10 14:22:04 +09:00
usbharu 3306ae1b5d Merge pull request #652 from usbharu/fix-resource-bundle
fix: ResourceBundleが読み込めなく鳴っている問題を修正
2025-01-10 14:18:54 +09:00
renovate[bot] d306d86e50 fix(deps): update tika monorepo to v3 2025-01-10 05:13:38 +00:00
usbharu 2693b83be2 fix: ResourceBundleが読み込めなく鳴っている問題を修正 2025-01-10 14:12:20 +09:00
renovate[bot] d4008e71d6 chore(deps): update plugin kover to v0.9.1 (#651)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-10 04:48:45 +00:00
usbharu ac0b8cacd4 Merge pull request #650 from usbharu/renovate/major-ktor-monorepo
fix(deps): update ktor monorepo to v3 (major)
2025-01-10 13:42:47 +09:00
renovate[bot] b52f1e5f3f fix(deps): update ktor monorepo to v3 2025-01-08 13:52:53 +00:00
usbharu 4a5dd2aed4 Merge pull request #649 from usbharu/renovate/major-flyway
fix(deps): update dependency org.flywaydb:flyway-database-postgresql to v11
2025-01-08 22:51:51 +09:00
renovate[bot] e3c014dcaf fix(deps): update dependency org.flywaydb:flyway-database-postgresql to v11 2025-01-06 03:41:20 +00:00
usbharu 84f6ace729 Merge pull request #648 from usbharu/renovate/major-javacv.ffmpeg
fix(deps): update dependency org.bytedeco:ffmpeg to v7
2025-01-06 12:40:06 +09:00
renovate[bot] 12a6e5ca20 fix(deps): update dependency org.bytedeco:ffmpeg to v7 2024-12-28 13:37:46 +00:00
usbharu 7dad7d31ea Merge pull request #645 from usbharu/renovate/postgres-17.x
chore(deps): update postgres docker tag to v17
2024-12-28 22:36:45 +09:00
renovate[bot] fc86ad89c3 fix(deps): update dependency io.insert-koin:koin-bom to v4.0.1 (#646)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-27 12:27:49 +00:00
renovate[bot] 9866f5979a chore(deps): update postgres docker tag to v17 2024-12-27 12:20:44 +00:00
usbharu 842e1628a3 Merge pull request #616 from usbharu/renovate/io.insert-koin-koin-bom-4.x
fix(deps): update dependency io.insert-koin:koin-bom to v4
2024-12-27 21:20:04 +09:00
usbharu 97b9b26ad9 Merge pull request #644 from usbharu/renovate/mikepenz-action-junit-report-5.x
chore(deps): update mikepenz/action-junit-report action to v5
2024-12-27 21:19:45 +09:00
renovate[bot] 309a6afde3 chore(deps): update mikepenz/action-junit-report action to v5 2024-12-21 19:36:47 +00:00
renovate[bot] 41c240c6dc fix(deps): update kotlinx-coroutines monorepo to v1.10.1 (#643)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-21 16:00:06 +00:00
renovate[bot] 6f7bb26ef1 fix(deps): update grpc-java monorepo to v1.69.0 (#642)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-21 13:39:35 +00:00
renovate[bot] 035edec6d6 fix(deps): update exposed to v0.57.0 (#641)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-21 10:00:48 +00:00
renovate[bot] 614379bc22 fix(deps): update dependency org.mongodb:mongodb-driver-kotlin-coroutine to v5.2.1 (#640)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-21 08:09:48 +00:00
renovate[bot] 1a1906dabb fix(deps): update dependency com.twelvemonkeys.imageio:imageio-webp to v3.12.0 (#639)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-21 04:25:25 +00:00
renovate[bot] 7c153488e5 chore(deps): update plugin org.gradle.toolchains.foojay-resolver-convention to v0.9.0 (#638)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-21 00:24:19 +00:00
renovate[bot] 0c8ca2d3eb chore(deps): update plugin kover to v0.9.0 (#637)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-20 23:47:58 +00:00
renovate[bot] 9fea1ca380 chore(deps): update dependency gradle to v8.12 (#636)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-20 18:16:58 +00:00
renovate[bot] e261b2d3cb chore(deps): update kotlin to v2.1.0 (#635)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-20 12:49:55 +00:00
renovate[bot] 23248b6766 fix(deps): update swagger to v2.2.27 (#634)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-20 09:41:12 +00:00
renovate[bot] 19883b7960 fix(deps): update ktor monorepo to v2.3.13 (#633)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-20 07:26:04 +00:00
renovate[bot] 39c510c60a fix(deps): update jackson monorepo to v2.18.2 (#632)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-20 05:13:32 +00:00
renovate[bot] 34361ce87c fix(deps): update dependency org.jsoup:jsoup to v1.18.3 (#631)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-20 01:53:14 +00:00
renovate[bot] 409e6a8f8e fix(deps): update dependency org.bytedeco:javacv to v1.5.11 (#630)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-20 00:04:48 +00:00
renovate[bot] f7ee527fd3 fix(deps): update dependency org.apache.logging.log4j:log4j-slf4j2-impl to v2.24.3 (#629)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-19 20:38:38 +00:00
renovate[bot] 2c17c91c0b chore(deps): update plugin spring-boot to v3.4.1 (#628)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-19 16:58:19 +00:00
renovate[bot] d4ac8c7ae3 chore(deps): update docker.elastic.co/kibana/kibana docker tag to v7.17.26 (#627)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-19 13:31:29 +00:00
usbharu 1f2feb6668 merge 2024-12-19 22:29:54 +09:00
renovate[bot] 70f62c334b chore(deps): update docker.elastic.co/elasticsearch/elasticsearch docker tag to v7.17.26 (#626)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-19 13:23:43 +00:00
usbharu b85b6d1c47 Merge branch 'develop' into activitypub
# Conflicts:
#	hideout-activitypub/build.gradle.kts
#	hideout/hideout-activitypub/src/main/kotlin/Main.kt
2024-12-19 22:23:26 +09:00
usbharu bc167f72f2 Merge pull request #621 from usbharu/renovate/mongo-8.x
chore(deps): update mongo docker tag to v8
2024-12-19 22:21:45 +09:00
usbharu 27d045363e Merge branch 'develop' into renovate/io.insert-koin-koin-bom-4.x 2024-12-19 22:20:58 +09:00
usbharu 33ad2ee301 Merge branch 'develop' into renovate/mongo-8.x 2024-12-19 22:20:33 +09:00
renovate[bot] 459599e577 fix(deps): update dependency org.junit.jupiter:junit-jupiter to v5.11.4 2024-12-19 13:18:14 +00:00
usbharu 20b1893faf Merge pull request #625 from usbharu/multiproject
Composite BuildをやめてMulti Projectに移行する
2024-12-19 22:13:43 +09:00
usbharu abac2fa93e テストに失敗するので修正 2024-12-19 22:02:59 +09:00
usbharu d0c2fe2fff とりあえず古いテストを無効化 2024-12-19 21:02:49 +09:00
usbharu f89f7c1faa chore: ci fix 2024-12-19 20:34:04 +09:00
usbharu c75f5da307 Merge remote-tracking branch 'origin/multiproject' into multiproject 2024-12-19 20:33:26 +09:00
usbharu 07e1a1354b chore: ci fix 2024-12-19 20:33:18 +09:00
usbharu 05035eba4e style: fix lint (CI) 2024-12-19 11:28:35 +00:00
usbharu fcb3f1a7bc chore: owlも依存関係に 2024-12-19 20:26:43 +09:00
usbharu 8e36f50366 chore: ci fix 2024-12-19 20:23:13 +09:00
usbharu 13e438f3b8 chore: ci fix 2024-12-19 20:22:09 +09:00
usbharu ecf41d387b chore: ciを改善 2024-12-19 20:19:22 +09:00
usbharu 56577c9137 chore: rootでテストを実行することで全ての子がテストを実行するように 2024-12-19 18:53:22 +09:00
usbharu 4e4cada0b7 style: fix lint 2024-12-19 18:41:42 +09:00
usbharu 73451a1918 マルチプロジェクト構成に変更 2024-12-19 18:19:35 +09:00
usbharu 4216beaf8a wip 2024-12-19 15:50:40 +09:00
usbharu ef0eacf1bf wip 2024-12-19 12:32:35 +09:00
renovate[bot] bcf0f65e06 chore(deps): update mongo docker tag to v8 2024-12-09 22:38:20 +00:00
usbharu 90d28ee8a1 feat: Owlの設定を追加 2024-11-09 09:03:01 +09:00
usbharu 22bd24304c feat: Actorのエンドポイントを追加 2024-11-09 07:34:23 +09:00
usbharu 4c62651da5 feat: ActivityPubのデシリアライズ部分の旧バージョンのモデルを持ってきた 2024-11-09 07:01:31 +09:00
usbharu dfbb3b0f35 Merge branch 'develop' into renovate/io.insert-koin-koin-bom-4.x 2024-10-02 10:42:16 +09:00
usbharu 32483abfe0 Merge pull request #624 from usbharu/uri-domain
ドメイン名だけじゃなくてポート番号も管理する
2024-09-22 11:59:47 +09:00
usbharu c3fdf98fd6 style: fix lint (CI) 2024-09-22 02:48:26 +00:00
usbharu 96d51a885f test: テストも修正 2024-09-22 11:43:19 +09:00
usbharu 309ea569e8 fix: ポート番号をしっかり扱えてなかったので修正 2024-09-22 11:40:12 +09:00
usbharu d33a9065e9 Merge pull request #623 from usbharu/readme
作り直しの影響でめっちゃ嘘ついてたREADME.mdを修正
2024-09-22 11:09:52 +09:00
usbharu 386b8a0ec3 作り直しの影響でめっちゃ嘘ついてたREADME.mdを修正 2024-09-22 11:09:19 +09:00
usbharu 8b5e3b3cec Merge pull request #622 from usbharu/domain-test
ドメイン層のテストを追加
2024-09-21 17:32:56 +09:00
usbharu b0ee6b117e style: fix lint 2024-09-21 17:27:16 +09:00
usbharu 5777adac93 style: fix lint (CI) 2024-09-21 08:15:47 +00:00
usbharu a9b7759220 Merge branch 'develop' into domain-test 2024-09-21 17:11:46 +09:00
usbharu 857beccd59 test: RelationshipDomainServiceのテストを追加 2024-09-21 17:10:49 +09:00
usbharu 9bc5f01c9b test: DefaultPostReadAccessControlにテストを追加 2024-09-21 15:56:30 +09:00
usbharu d2b69b162a feat: FilterなどにtoStringとequalsを実装 2024-09-20 14:51:24 +09:00
usbharu 1e2813284d Merge pull request #620 from usbharu/renovate/spring-boot
chore(deps): update plugin spring-boot to v3.3.4
2024-09-19 21:41:37 +09:00
renovate[bot] 0e0b5bc0ac chore(deps): update plugin spring-boot to v3.3.4 2024-09-19 12:20:05 +00:00
usbharu 2d9f271d3d Merge pull request #617 from usbharu/renovate/dorny-paths-filter-3.x
chore(deps): update dorny/paths-filter action to v3
2024-09-19 21:18:38 +09:00
usbharu a5f7fff032 Merge branch 'develop' into renovate/dorny-paths-filter-3.x 2024-09-19 21:18:03 +09:00
usbharu 79adbf46cb Merge pull request #619 from usbharu/renovate/madrapps-jacoco-report-1.x
chore(deps): update madrapps/jacoco-report action to v1.7.1
2024-09-19 21:17:48 +09:00
usbharu b52839192c test: RelationshipTest.ktを追加 2024-09-18 23:54:25 +09:00
usbharu 22084ee4be feat: UserFollowRequestApplicationService.ktをフォロー前状態チェックに対応 2024-09-18 23:31:23 +09:00
usbharu 9677b11f5c feat: フォロー等の事前状態チェックをドメインサービスで詳細に行うように 2024-09-18 23:26:03 +09:00
renovate[bot] 1020fe2adf chore(deps): update madrapps/jacoco-report action to v1.7.1 2024-09-18 07:16:01 +00:00
usbharu 6d233a1d39 wip 2024-09-18 12:49:07 +09:00
renovate[bot] 350f17c0b1 chore(deps): update dorny/paths-filter action to v3 2024-09-18 02:57:12 +00:00
usbharu d8d903437e Merge pull request #615 from usbharu/controller-test
Controller test
2024-09-18 11:56:40 +09:00
usbharu 80918e1c2e chore: typoを修正 2024-09-17 22:59:13 +09:00
usbharu 30b58c1e14 chore: gradleがなぜかキャッシュを使ってしまうので強制的にk破棄 2024-09-17 22:56:31 +09:00
usbharu 0fe96360a9 chore: gradlewのパーミッションを設定 2024-09-17 22:48:04 +09:00
usbharu ec0934a411 chore: activitypubでdetektが動くように 2024-09-17 22:46:38 +09:00
usbharu 35eded28e5 chore: なぜかGradleが勝手に違うプロジェクトを開いてしまうので強制的に変更2 2024-09-17 22:36:34 +09:00
usbharu 0b1fe6eefc chore: なぜかGradleが勝手に違うプロジェクトを開いてしまうので強制的に変更 2024-09-17 22:20:10 +09:00
usbharu d2030bc9e5 fix: typo 2024-09-17 22:07:40 +09:00
renovate[bot] d4122429ee fix(deps): update dependency io.insert-koin:koin-bom to v4 2024-09-17 13:03:30 +00:00
usbharu 4bc9e3abd2 style: fix lint 2024-09-17 22:02:29 +09:00
usbharu 1a2142e83b chore: owlでdetektが動作するように 2024-09-17 21:53:54 +09:00
usbharu 26b3bdd721 chore: owlでkoverが動作するように 2024-09-17 21:24:25 +09:00
usbharu acb9efdfef chore: ジョブの実行条件を修正 2024-09-17 14:07:21 +09:00
usbharu 80a8a5dcee chore: ジョブの依存関係と実行条件を修正 2024-09-17 14:01:26 +09:00
usbharu 3faf6b9c34 chore: owlとactivitypubにもlintとコードカバレッジの計測を追加 2024-09-17 13:56:24 +09:00
usbharu 3890659a7d chore: 不要なステップを削除 2024-09-17 13:10:14 +09:00
usbharu ee7bdf66eb chore: カバレッジレポート名を修正 2024-09-17 01:47:34 +09:00
usbharu 455c7aea3f chore: ファイル名を修正 2024-09-17 01:37:19 +09:00
usbharu 4a9b192e84 chore: ファイル名を修正 2024-09-17 01:32:46 +09:00
usbharu f622d23a7b chore: ファイル名を修正 2024-09-17 01:24:04 +09:00
usbharu 23fb7f9f2a chore: ファイル名を修正 2024-09-17 01:16:07 +09:00
usbharu bb6e03461a chore: ファイル名を修正 2024-09-17 00:49:27 +09:00
usbharu 579ac44372 chore: ファイル名を修正 2024-09-17 00:33:36 +09:00
usbharu 4eb8127105 chore: ファイル名を修正 2024-09-17 00:26:33 +09:00
usbharu 031ba79450 chore: ファイル名を修正 2024-09-17 00:16:52 +09:00
usbharu 95ac60bfec chore: ファイル名を修正 2024-09-17 00:12:37 +09:00
usbharu e36c7d6fb9 chore: ファイル名を修正 2024-09-17 00:04:14 +09:00
usbharu ee665eddb3 chore: アップロード名を間違えていたので修正 2024-09-16 23:56:38 +09:00
usbharu 6ffd675f35 chore: gradlewのパーミッションを設定 2024-09-16 23:46:39 +09:00
usbharu af70c18b7a chore: outputの設定を間違えていたので修正 2024-09-16 23:42:34 +09:00
usbharu 5456413e42 chore: mastodonでもカバレッジ率を計測するように 2024-09-16 23:39:12 +09:00
usbharu 375113f384 chore: 権限を修正 2024-09-16 23:17:56 +09:00
usbharu e6573ccbb3 chore: カバレッジレポートの集計場所を修正 2024-09-16 23:12:50 +09:00
usbharu bd74ca1e0f chore: カバレッジレポートの集計場所を修正 2024-09-16 23:02:18 +09:00
usbharu a4cfbe81a1 chore: カバレッジレポートの集計場所を修正 2024-09-16 22:51:46 +09:00
usbharu 42c6e0b093 Merge remote-tracking branch 'origin/controller-test' into controller-test 2024-09-16 22:43:58 +09:00
usbharu 26e0679435 chore: Javaのバージョンを指定 2024-09-16 22:43:47 +09:00
usbharu 572ceacc67 style: fix lint (CI) 2024-09-16 13:40:48 +00:00
usbharu f7e151b575 chore: CIを改善 2024-09-16 22:37:44 +09:00
usbharu f83d47e877 chore: CIを改善 2024-09-16 22:34:24 +09:00
usbharu cb52248b1c test: Filter APIのテストを一部復活 2024-09-16 01:43:00 +09:00
usbharu 5cc8267135 test: MediaAPIのテストを復活 2024-09-16 01:08:25 +09:00
usbharu 33d7bcb665 test: 昔のMastodon互換APIのテストを復活 2024-09-16 00:50:52 +09:00
usbharu b38d34d1ac Merge pull request #614 from usbharu/application-service
リファクタリング
2024-09-15 23:15:50 +09:00
usbharu 884d17cf47 chore: カバレッジの計測方法を命令網羅に変更 2024-09-15 23:11:29 +09:00
usbharu 0801216a0d chore: カバレッジ率の検証をするように 2024-09-15 23:01:42 +09:00
usbharu 75a59d7393 style: fix lint (CI) 2024-09-15 02:32:35 +00:00
usbharu 56a4e94e41 refactor: AbstractRepositoryを改善 2024-09-15 11:29:14 +09:00
usbharu 2c10fc5330 Merge remote-tracking branch 'origin/application-service' into application-service 2024-09-15 11:18:08 +09:00
usbharu bc02913e55 refactor: クラスのパッケージが間違っていたので修正 2024-09-15 11:17:48 +09:00
usbharu a1cef4657e style: fix lint (CI) 2024-09-14 13:26:21 +00:00
usbharu d9b51d44e1 chore: コピーライトを更新 2024-09-14 22:20:23 +09:00
usbharu c52d157696 fix: リファクタリングで壊れた部分を修正 2024-09-14 22:09:39 +09:00
usbharu 6904bc0692 refactor: Application Serviceをリファクタリング3 2024-09-14 21:52:27 +09:00
usbharu 3a923c7c57 refactor: Application Serviceをリファクタリング2 2024-09-14 21:43:56 +09:00
usbharu bde0b31d28 refactor: Application Serviceをリファクタリング 2024-09-14 21:35:18 +09:00
usbharu 5f97c45906 Merge pull request #603 from usbharu/repository-test
リポジトリのテストを追加
2024-09-14 20:44:12 +09:00
usbharu acd96aaed3 test: ドメインイベントのテストを追加 2024-09-14 20:41:15 +09:00
usbharu c5f5883c96 style: fix lint (CI) 2024-09-14 11:24:43 +00:00
usbharu 481a788410 Merge remote-tracking branch 'origin/repository-test' into repository-test
# Conflicts:
#	hideout-core/src/test/kotlin/dev/usbharu/hideout/core/infrastructure/exposedrepository/ExposedFilterRepositoryTest.kt
2024-09-14 20:21:21 +09:00
usbharu 7ce7e3085a test: ExposedApplicationRepositoryとExposedCustomEmojiRepositoryとExposedFilterRepositoryのテストを追加 2024-09-14 20:20:30 +09:00
usbharu 857a46057f style: fix lint (CI) 2024-09-14 11:15:14 +00:00
usbharu 86d469451b test: ExposedApplicationRepositoryとExposedCustomEmojiRepositoryとExposedFilterRepositoryのテストを追加 2024-09-14 20:11:41 +09:00
usbharu 934e032b70 test: ExposedTimelineRelationshipRepositoryのテストを追加 2024-09-14 16:39:34 +09:00
usbharu f7ccd36429 Merge branch 'develop' into repository-test 2024-09-14 14:25:40 +09:00
usbharu 8dd55744ec style: fix lint (CI) 2024-09-14 05:04:08 +00:00
usbharu 94d0bedb36 style: fix lint (CI) 2024-09-14 05:00:09 +00:00
usbharu e46c85984c test: ExposedRelationshipRepositoryのテストを追加 2024-09-14 13:56:54 +09:00
usbharu 1503ee1844 refactor: 使用されてない関数を削除 2024-09-14 13:56:24 +09:00
usbharu 900ed51d09 refactor: Repository実装のクラス名を統一 2024-09-14 11:45:59 +09:00
renovate[bot] 1316558443 fix(deps): update coroutines to v1.9.0 2024-09-13 17:19:25 +00:00
usbharu e43e1575cf style: fix lint 2024-09-13 16:33:17 +09:00
usbharu 67208e5899 test: ExposedReactionRepositoryのテストを追加 2024-09-13 16:30:36 +09:00
usbharu 74aa1302d4 style: fix lint (CI) 2024-09-13 05:44:39 +00:00
usbharu 24e97abf3f test: ExposedTimelineRepositoryのテストを追加 2024-09-13 14:41:19 +09:00
usbharu daae3b2912 Merge branch 'develop' into repository-test 2024-09-13 14:11:25 +09:00
usbharu 2fc5962ddd Merge pull request #609 from usbharu/develop-env
開発環境の整備
2024-09-13 14:08:18 +09:00
usbharu 4f5c07e735 Merge remote-tracking branch 'origin/develop-env' into develop-env 2024-09-13 13:55:16 +09:00
usbharu 9ed85bae07 style: fix lint 2024-09-13 13:55:06 +09:00
usbharu f82680236e style: fix lint (CI) 2024-09-13 04:46:26 +00:00
usbharu 1c80911365 feat: ドメインイベントのサブスクライバー一覧を出力できるように 2024-09-13 13:40:52 +09:00
usbharu d74101a2b6 style: fix lint (CI) 2024-09-12 17:57:49 +00:00
usbharu 5969371a40 style: fix lint (CI) 2024-09-12 17:53:29 +00:00
usbharu 3a81783d2c Merge branch 'develop' into develop-env 2024-09-13 02:48:29 +09:00
usbharu 831bb17fca chore: ログを改善2 2024-09-13 02:43:44 +09:00
usbharu 94365e09f2 chore: ログを改善 2024-09-13 01:38:12 +09:00
usbharu 0dcd2b1b9a chore: jsonのログを見れるように 2024-09-12 22:02:04 +09:00
renovate[bot] 7345d985bd fix(deps): update dependency org.flywaydb:flyway-database-postgresql to v10.18.0 2024-09-12 11:47:16 +00:00
usbharu d4fd61d31d test: ExposedTimelineRepositoryのテストを追加 2024-09-12 17:00:04 +09:00
renovate[bot] 72659bf57b fix(deps): update protobuf to v4.28.1 2024-09-11 21:58:40 +00:00
usbharu 85d36e5aa2 refactor: ExposedActorRepository.ktにuri型を導入2 2024-09-11 18:08:46 +09:00
usbharu 404ca6c531 refactor: ExposedActorRepository.ktにuri型を導入2 2024-09-11 16:15:53 +09:00
usbharu 8e43427f15 Merge remote-tracking branch 'origin/repository-test' into repository-test 2024-09-11 16:12:47 +09:00
usbharu 554ce68c93 refactor: ExposedActorRepository.ktにuri型を導入 2024-09-11 16:12:36 +09:00
usbharu 88ab8d23df style: fix lint (CI) 2024-09-11 06:58:58 +00:00
usbharu 57430b7e4a test: ExposedActorRepositoryのテストを追加 2024-09-11 15:55:42 +09:00
usbharu 575763c605 test: ExposedPostRepositoryのテストを追加 2024-09-11 10:48:40 +09:00
usbharu 1e07807ebc Merge remote-tracking branch 'origin/repository-test' into repository-test 2024-09-11 09:44:38 +09:00
usbharu 90a815cf5d test: ExposedPostRepositoryのテストを追加 2024-09-11 09:44:20 +09:00
usbharu d9297b0992 refactor: Uri型のColumnTypeを作成して型安全性を向上 2024-09-11 08:18:29 +09:00
usbharu d1560f25aa style: fix lint (CI) 2024-09-10 23:14:47 +00:00
usbharu 34a36b5ed5 refactor: Uri型のColumnTypeを作成して型安全性を向上 2024-09-11 08:09:01 +09:00
usbharu 498d6d73da test: ExposedMediaRepositoryのテストを修正 2024-09-11 07:53:00 +09:00
usbharu 93e93c6b01 test: ExposedMediaRepositoryのテストを追加 2024-09-11 07:37:21 +09:00
usbharu 95c901790f refactor: 命名規則に従って名前を変更 2024-09-11 07:36:53 +09:00
usbharu 2501990dac chore: gradleの設定とテストを調整 2024-09-11 06:20:58 +09:00
usbharu bf2dbf159a style: style 2024-09-11 05:57:17 +09:00
usbharu 5c554bfa16 test: UserDetailRepositoryImplのテストを追加 2024-09-11 00:02:28 +09:00
usbharu 1983841cef test: テストの前提条件SQLをコードから安全に生成できるように 2024-09-10 23:45:22 +09:00
usbharu e67eb788a7 Merge remote-tracking branch 'origin/repository-test' into repository-test 2024-09-10 21:34:56 +09:00
usbharu fa66ccaa0c test: 動かないテストがあったので修正 2024-09-10 21:34:45 +09:00
usbharu d2c608333d style: fix lint (CI) 2024-09-10 12:14:38 +00:00
usbharu ad112406b8 style: fix lint (CI) 2024-09-10 12:11:46 +00:00
usbharu 88d34a6b71 Merge branch 'develop' into repository-test 2024-09-10 21:07:31 +09:00
usbharu 9daf79904b test: ExposedActorInstanceRelationshipRepositoryのテストを追加 2024-09-10 21:01:03 +09:00
usbharu 29cbb5f93e test: InstanceRepositoryImplのテストを追加 2024-09-10 19:56:08 +09:00
usbharu 37c8335165 test: InstanceRepositoryImplのテストを追加 2024-09-10 18:55:55 +09:00
usbharu 27ccca02c0 test: Repositoryのテストを追加 2024-09-10 17:45:51 +09:00
renovate[bot] 1e0407c16f fix(deps): update dependency software.amazon.awssdk:s3 to v2.27.22 2024-09-09 23:14:11 +00:00
renovate[bot] 4c879e3e04 chore(deps): update dependency gradle to v8.10.1 2024-09-09 09:56:46 +00:00
usbharu d8961464cc Merge pull request #598 from usbharu/renovate/detekt
chore(deps): update detekt to v1.23.7
2024-09-09 18:51:26 +09:00
usbharu 4c6c8f5938 Merge branch 'develop' into renovate/detekt 2024-09-09 18:48:09 +09:00
usbharu 39ad5a3125 style: fix lint 2024-09-09 18:47:02 +09:00
usbharu ff49f371af Merge pull request #600 from usbharu/fix-mastodon-timeline-api
fix: Mastodon互換APIからフォロー等ができない問題を修正
2024-09-09 18:46:58 +09:00
usbharu 1544a161e6 fix: Mastodon互換APIからフォロー等ができない問題をシュスエイ 2024-09-09 18:39:33 +09:00
usbharu 2e0f0c77bf Merge pull request #599 from usbharu/mastodon-timeline-api
feat: Mastodonでホームタイムラインを読めるように
2024-09-09 16:33:59 +09:00
usbharu 91848717fe style: fix lint (CI) 2024-09-09 07:30:05 +00:00
renovate[bot] 2b2d9046d8 style: fix lint (CI) 2024-09-09 07:20:00 +00:00
renovate[bot] 2a1486cb4d chore(deps): update detekt to v1.23.7 2024-09-09 07:16:06 +00:00
usbharu 3b57786984 feat: Mastodonでホームタイムラインを読めるように 2024-09-09 16:15:20 +09:00
usbharu 3612a78115 test: 失敗するテストを修正 2024-09-09 15:20:32 +09:00
usbharu 021f6b0d45 feat: mastodon 互換APIを追加 2024-09-08 23:32:01 +09:00
usbharu 7665286270 fix: セッションが存在しない時にエラーが出る問題を修正 2024-09-08 23:01:19 +09:00
usbharu 5eb3bc3704 feat: リアクションを取り消せるように 2024-09-08 23:00:59 +09:00
usbharu 8c3ff077d8 fix: セッションが存在しない時に作成しないように 2024-09-08 22:27:40 +09:00
usbharu d4aaad3fb6 feat: リアクションしたかを確認できるように 2024-09-08 22:26:50 +09:00
usbharu e42919ce3c feat: タイムラインにリアクションを表示するように 2024-09-08 16:40:51 +09:00
usbharu 2b567bb1d5 feat: Post詳細ページでリアクションを表示できるように 2024-09-08 15:58:05 +09:00
usbharu 1b4dbc8566 feat: reactionのテーブル定義を追加 2024-09-08 01:17:58 +09:00
usbharu daf676503d feat: ReactionRepositoryを追加 2024-09-08 01:10:12 +09:00
usbharu 72c9b8b7c5 feat: Reactionを追加 2024-09-08 00:58:18 +09:00
usbharu 6c83306f0d Merge pull request #591 from usbharu/follow
簡易クライアントからフォローできるように
2024-09-07 23:33:42 +09:00
usbharu cf1327eae4 style: fix lint (CI) 2024-09-07 14:29:44 +00:00
usbharu 0c3e69a7e4 feat: unfollow時にフォローリクエストも破棄するように
不整合等の解消を容易にするためのため
2024-09-07 23:23:57 +09:00
usbharu b3a5749b54 feat: ユーザー詳細からフォロー/アンフォローできるように 2024-09-07 18:46:49 +09:00
usbharu cf0b0017f6 feat: 所有しているタイムラインの一覧を取得できるように 2024-09-07 16:44:30 +09:00
usbharu 8c5c2abb3f feat: フォローを外したときにホームタイムラインから自動で外れるように 2024-09-07 16:04:19 +09:00
usbharu 2e836c228f Merge pull request #590 from usbharu/structured-logging
構造化ログを出力するように
2024-09-07 14:51:14 +09:00
usbharu cc0e14f00b Merge branch 'develop' into structured-logging 2024-09-07 14:48:26 +09:00
usbharu c26e8aea4b chore: version catalogを使用するように 2024-09-07 13:30:46 +09:00
usbharu e8724f333d chore: ロガーをlogbackに変更して構造化ログを出力するように 2024-09-07 13:27:02 +09:00
renovate[bot] 7e535ebcf9 fix(deps): update dependency software.amazon.awssdk:s3 to v2.27.21 2024-09-07 02:25:33 +00:00
renovate[bot] 96dd11292f fix(deps): update dependency org.apache.logging.log4j:log4j-slf4j2-impl to v2.24.0 2024-09-06 22:51:21 +00:00
usbharu ebef329120 Merge pull request #587 from usbharu/use-upsert
feat: insertとupdateを使用していた部分をupsertに置き換え
2024-09-07 00:06:09 +09:00
usbharu c7742914ef style: fix lint (CI) 2024-09-06 08:58:52 +00:00
usbharu 4bc0dc6927 Merge branch 'develop' into use-upsert 2024-09-06 17:54:28 +09:00
usbharu 96af8fa144 feat: insertとupdateを使用していた部分をupsertに置き換え 2024-09-06 17:53:58 +09:00
usbharu 20a762b8f4 Merge pull request #585 from usbharu/ssr-client
noscript用の簡易SSRクライアントを追加
2024-09-06 17:50:36 +09:00
usbharu da106a6922 style: fix lint 2024-09-06 17:47:11 +09:00
usbharu ee23ce8b82 Merge branch 'develop' into ssr-client 2024-09-06 17:42:38 +09:00
usbharu 4acc1653d1 fix: errorのときもindexになってしまうためerrorのときのみ除外するように 2024-09-06 17:42:06 +09:00
usbharu 4d86cc0e41 feat: レイアウト等を統一し、ヘッダーを追加 2024-09-06 17:41:27 +09:00
renovate[bot] 92b6418202 fix(deps): update dependency software.amazon.awssdk:s3 to v2.27.20 2024-09-05 22:51:06 +00:00
usbharu f86a224ed2 style: fix lint (CI) 2024-09-05 15:39:25 +00:00
usbharu 5036e01c89 style: fix lint (CI) 2024-09-05 15:35:56 +00:00
usbharu ed41c025cf Merge branch 'develop' into ssr-client 2024-09-06 00:30:28 +09:00
usbharu c8a8e77021 feat: OGP用のクラスを追加 2024-09-05 15:31:10 +09:00
usbharu 48d325deed feat: OGP用のクラスを追加 2024-09-05 14:15:45 +09:00
usbharu df6d2940ed feat: privateなときは登録フォームへのリンクを出さないように
登録自体はまだできる
2024-09-05 12:59:25 +09:00
usbharu aa34fb0370 feat: /auth配下をMastodonと統一 2024-09-05 12:33:53 +09:00
usbharu 7b77b097ca feat: ログイン用ページをMastodonと統一 2024-09-05 11:55:35 +09:00
renovate[bot] fc8cb156da fix(deps): update dependency software.amazon.awssdk:s3 to v2.27.19 2024-09-04 23:14:46 +00:00
usbharu 15cb1375c8 feat: 一部のnoscriptタグを削除 2024-09-04 19:12:42 +09:00
usbharu 4f9c431d9b feat: クエリパラメータでSSRを使用するかを切り替えれるように
SSRを使用するかの設定はセッショに保存され、次のアクセスから設定する必要はなくなる
サーバーはとりあえずSPA用のindexページを送信し、noscriptを検知してクエリパラメータ付きのページに遷移する
2024-09-04 18:55:10 +09:00
usbharu fec59ab622 fix: クエリパラメータのパラメータ名の形式を修正
fix #577
2024-09-04 16:50:27 +09:00
usbharu 975fd5160b feat: 投稿に直接返信できるように 2024-09-04 16:26:47 +09:00
usbharu 57afdcdd7b wip 2024-09-04 15:48:48 +09:00
renovate[bot] ec565039d1 fix(deps): update dependency org.mongodb:mongodb-driver-kotlin-coroutine to v5.1.4 2024-09-04 02:15:30 +00:00
renovate[bot] 4c5344426b fix(deps): update dependency software.amazon.awssdk:s3 to v2.27.18 2024-09-03 21:53:56 +00:00
renovate[bot] 0cf8185e50 fix(deps): update dependency org.flywaydb:flyway-database-postgresql to v10.17.3 2024-09-02 13:37:16 +00:00
renovate[bot] 140351f5e7 fix(deps): update dependency software.amazon.awssdk:s3 to v2.27.17 2024-08-31 02:11:05 +00:00
renovate[bot] 9c445fba8c chore(deps): update madrapps/jacoco-report action to v1.7.0 2024-08-30 20:10:25 +00:00
renovate[bot] 79a10a27fc fix(deps): update exposed to v0.54.0 2024-08-30 14:18:31 +00:00
renovate[bot] baba7e8c0e fix(deps): update dependency software.amazon.awssdk:s3 to v2.27.16 2024-08-29 22:35:59 +00:00
usbharu 0463ad6b69 wip 2024-08-29 14:02:16 +09:00
renovate[bot] c94bb81fb2 fix(deps): update protobuf to v4.28.0 2024-08-29 02:24:08 +00:00
renovate[bot] 8f3008b96c fix(deps): update dependency software.amazon.awssdk:s3 to v2.27.15 2024-08-28 23:26:44 +00:00
renovate[bot] e9bac27608 fix(deps): update dependency io.swagger.core.v3:swagger-annotations to v2.2.23 2024-08-28 12:14:00 +00:00
renovate[bot] 37de9ccd00 fix(deps): update dependency software.amazon.awssdk:s3 to v2.27.14 2024-08-28 01:46:45 +00:00
renovate[bot] efb07f5927 fix(deps): update protobuf to v4.27.4 2024-08-27 23:06:39 +00:00
usbharu 992cc18c62 feat: /users/:idを追加 2024-08-27 10:43:08 +09:00
renovate[bot] b7caf11e3e fix(deps): update dependency software.amazon.awssdk:s3 to v2.27.13 2024-08-27 00:41:27 +00:00
renovate[bot] f0d8ee979d chore(deps): update mongo docker tag to v7.0.14 2024-08-26 22:30:03 +00:00
usbharu c48694ab0b feat: /auth/sign_up を改良 2024-08-26 17:50:03 +09:00
usbharu 533582534f feat: messagesをホットリロードに対応 2024-08-26 17:47:41 +09:00
usbharu bd219b62e1 Merge pull request #568 from usbharu/develop-env
開発時の体験を向上
2024-08-26 15:51:02 +09:00
usbharu 92a9bbcfdb chore: GitHub ActionsでLinterの自動適用後に更にCIが起動するように 2024-08-26 15:47:22 +09:00
usbharu 623e56bb91 style: fix lint (CI) 2024-08-26 06:31:51 +00:00
usbharu 3b8156e16d chore: 開発時にホットリロード等ができるように 2024-08-26 15:24:12 +09:00
usbharu a60b709cb0 chore: .gitignoreにhttp-client.private.env.jsonを追加 2024-08-26 13:34:56 +09:00
usbharu 1115590ab2 chore: httpクライアントの整備
http-client.private.env.jsonを/api/v1/appsを実行した結果と以下の内容を合わせて作成することで使える
{
  "dev": {
    "client_id": "",
    "client_secret": "",
    "host": "localhost:8081"
  }
}
2024-08-26 13:34:20 +09:00
usbharu 456df222f2 feat: 設定ファイルの内容を自動的に生成するように 2024-08-26 13:32:00 +09:00
usbharu e054e47453 chore: 開発環境用の設定ファイルを追加 2024-08-24 18:21:13 +09:00
usbharu dd9749a536 Merge pull request #567 from usbharu/refactor
ログを改善
2024-08-24 15:49:15 +09:00
usbharu ac5d6800e1 style: fix lint (CI) 2024-08-24 04:22:10 +00:00
usbharu eed5e8a75a revert: MDCに対応してなかったので削除 2024-08-24 13:17:25 +09:00
usbharu 0c9faa509b feat: mdcを出力するように 2024-08-24 12:57:33 +09:00
usbharu e4947ce5a9 feat: ログを改善 2024-08-24 12:22:31 +09:00
usbharu 9b60099ad9 refactor: Thymeleafの警告をなくした 2024-08-24 12:13:21 +09:00
usbharu 7362d20565 fix: 起動しなかったので修正 2024-08-24 12:04:47 +09:00
usbharu 457b6a12be refactor: userdetailのtoStringを改良 2024-08-24 12:04:31 +09:00
usbharu c872a837eb refactor: SnowflakeIdGenerateServiceを改良 2024-08-24 11:31:36 +09:00
usbharu 4dcec9e806 Merge pull request #562 from usbharu/subscriber
Subscriberの初期化をinit関数でするように
2024-08-24 11:07:49 +09:00
usbharu 8e0aedf0db Merge branch 'develop' into subscriber 2024-08-24 11:03:23 +09:00
renovate[bot] 406668e958 fix(deps): update dependency software.amazon.awssdk:s3 to v2.27.12 2024-08-24 02:01:28 +00:00
usbharu 9663cba4af style: fix lint (CI) 2024-08-24 02:00:49 +00:00
usbharu e2c633a917 feat: init関数を使用して初期化するように 2024-08-24 10:54:16 +09:00
usbharu d5805089f5 feat: Subscriberにinit関数を追加 2024-08-24 10:53:44 +09:00
usbharu f9c10eeb7a Merge pull request #561 from usbharu/detekt
Detektをhideout-mastodonにも適用するように
2024-08-24 00:32:04 +09:00
usbharu 896e7de1ec style: fix lint (CI) 2024-08-23 15:20:28 +00:00
usbharu 486268609b Merge branch 'develop' into detekt 2024-08-24 00:16:19 +09:00
usbharu 2f0b5915fc Merge pull request #558 from usbharu/fix-actor-url
Actorのurlを修正 MediaにオーナーのActorIdを追加
2024-08-24 00:13:03 +09:00
usbharu ca92ce71b6 chore: hideout-mastodonもチェックするように 2024-08-24 00:11:54 +09:00
usbharu de56fa0547 style: fix lint 2024-08-23 23:56:47 +09:00
usbharu da1235f95c chore: hideout-mastodonにDetektを追加 2024-08-23 23:51:25 +09:00
usbharu fd0d6b9625 style: fix lint 2024-08-23 23:39:27 +09:00
usbharu 76abc69c6c style: fix lint (CI) 2024-08-23 13:49:15 +00:00
usbharu e15380c96c feat: MediaにオーナーのActorIdを追加 2024-08-23 22:43:11 +09:00
usbharu aa476256ac Merge branch 'develop' into fix-actor-url 2024-08-23 22:28:40 +09:00
usbharu 7e8d066144 fix: Actorのurlがoutboxのurlとなっていたのを修正 2024-08-23 22:22:16 +09:00
usbharu e21552df97 Merge pull request #557 from usbharu/docker
docker-compose.ymlを整備
2024-08-23 22:20:14 +09:00
usbharu fb3f3ddd4b Merge branch 'develop' into docker 2024-08-23 22:15:46 +09:00
renovate[bot] d4b9b67f08 chore(deps): update plugin spring-boot to v3.3.3 2024-08-23 02:10:35 +00:00
renovate[bot] 1d131e71c5 fix(deps): update dependency software.amazon.awssdk:s3 to v2.27.11 2024-08-22 22:19:16 +00:00
renovate[bot] 7cb3a48e46 fix(deps): update dependency org.postgresql:postgresql to v42.7.4 2024-08-22 17:47:22 +00:00
renovate[bot] b3d4ad8546 fix(deps): update dependency org.flywaydb:flyway-database-postgresql to v10.17.2 2024-08-22 13:36:39 +00:00
renovate[bot] ddc559807a fix(deps): update dependency org.jetbrains.kotlin:kotlin-test-junit to v2.0.20 2024-08-22 08:58:25 +00:00
renovate[bot] 7120e82827 fix(deps): update dependency software.amazon.awssdk:s3 to v2.27.10 2024-08-21 21:32:49 +00:00
renovate[bot] 15b8e65d2d fix(deps): update dependency software.amazon.awssdk:s3 to v2.27.9 2024-08-21 01:18:05 +00:00
renovate[bot] 6758105394 fix(deps): update dependency software.amazon.awssdk:s3 to v2.27.8 2024-08-19 21:41:29 +00:00
renovate[bot] b248258808 chore(deps): update plugin openapi-generator to v7.8.0 2024-08-19 09:59:54 +00:00
usbharu 9efbf457a4 chore: docker-compose.ymlを整備 2024-08-18 16:59:09 +09:00
usbharu 65d8502a18 Merge pull request #547 from usbharu/timeline2
ホームタイムラインを見れるように
2024-08-17 20:09:26 +09:00
usbharu 29ff1269ce style: fix lint (CI) 2024-08-17 10:52:33 +00:00
usbharu 3105c6cf65 Merge branch 'develop' into timeline2 2024-08-17 19:49:05 +09:00
usbharu 11e2eb1e10 feat: ページングが動くように 2024-08-17 18:21:32 +09:00
renovate[bot] 3d638a4d63 fix(deps): update dependency software.amazon.awssdk:s3 to v2.27.7 2024-08-16 22:20:03 +00:00
renovate[bot] 77f72178dc fix(deps): update dependency software.amazon.awssdk:s3 to v2.27.6 2024-08-16 17:38:31 +00:00
usbharu d53cdca9e5 feat: ホームタイムラインが読めるように 2024-08-16 15:10:53 +09:00
usbharu e1787423e8 feat: 自分自身をホームタイムラインに追加するように 2024-08-16 15:02:32 +09:00
usbharu e9d776f71a feat: トランザクションの問題で正常にドメインイベントを受け取ったあとの処理を実行できなかった問題を修正 2024-08-16 14:25:26 +09:00
renovate[bot] 707e4aef65 chore(deps): update plugin license-report to v2.9 2024-08-15 20:31:52 +00:00
usbharu 8d244b74c1 feat: ローカルユーザー追加時に自動でホームタイムライン等を作成するように 2024-08-16 02:49:48 +09:00
usbharu 711084e366 feat: タイムラインを読めるように 2024-08-15 18:22:56 +09:00
renovate[bot] 31bee9b15a fix(deps): update dependency software.amazon.awssdk:s3 to v2.27.5 2024-08-15 04:33:21 +00:00
usbharu 88a61ba97f feat: タイムラインを読めるように 2024-08-15 00:02:26 +09:00
renovate[bot] 04a0059fb2 chore(deps): update dependency gradle to v8.10 2024-08-14 13:46:21 +00:00
renovate[bot] 1df1aae880 fix(deps): update dependency software.amazon.awssdk:s3 to v2.27.4 2024-08-13 23:38:38 +00:00
usbharu 60d71e1eb2 Merge pull request #539 from usbharu/ci-gradle
chore: ciを改善
2024-08-13 21:20:33 +09:00
usbharu 6c91b77eeb chore: no-daemon 2024-08-13 21:13:54 +09:00
usbharu f6fec05667 chore: detektの設定を更新 2024-08-13 21:09:31 +09:00
usbharu b2d59f619b chore: version catalogに統一 2024-08-13 21:06:59 +09:00
usbharu 6f11d1cd4e Merge branch 'develop' into ci-gradle 2024-08-13 20:17:38 +09:00
renovate[bot] c71ad2a28e fix(deps): update dependency org.flywaydb:flyway-database-postgresql to v10.17.1 2024-08-13 11:16:54 +00:00
usbharu 6d997e8012 style: fix lint (CI) 2024-08-13 11:16:14 +00:00
usbharu d5f08ef710 chore: ciを改善 2024-08-13 20:11:00 +09:00
usbharu 17bf2aade6 Merge pull request #536 from usbharu/ssr-front
OGPとnoscript時の簡易表示に対応
2024-08-13 15:48:33 +09:00
usbharu 4e8581ca94 test: 終わらないテストが発生したのでテストごと消した 2024-08-13 15:37:51 +09:00
usbharu 2db668e6ff Merge branch 'develop' into ssr-front 2024-08-13 14:26:14 +09:00
renovate[bot] 475efbe99a fix(deps): update dependency software.amazon.awssdk:s3 to v2.27.3 2024-08-13 03:35:22 +00:00
usbharu 91573c0b2e feat: 投稿フォームを追加 2024-08-13 12:31:02 +09:00
renovate[bot] 3794ac2d3c fix(deps): update dependency com.h2database:h2 to v2.3.232 2024-08-13 02:07:26 +00:00
usbharu 1fc6a1fa38 feat: wip 投稿フォーム作成 2024-08-12 23:22:38 +09:00
usbharu 2bc9b17cdc feat: 画像読み込みに対応 2024-08-12 22:13:16 +09:00
usbharu be07a89b7f feat: ogpに対応 2024-08-12 22:04:42 +09:00
usbharu f4d30e837e feat: 投稿詳細ページを作成 2024-08-12 21:38:07 +09:00
usbharu ced41e64fd fix: メディア付き投稿に失敗する問題を修正 2024-08-12 13:28:03 +09:00
usbharu 42b9d4e64b Merge pull request #532 from usbharu/auth3
Mastodon APIから利用されるQuery Service等にも認可処理を追加
2024-08-11 18:13:51 +09:00
usbharu 7f1f566924 Merge branch 'develop' into auth3 2024-08-11 18:09:03 +09:00
usbharu 7ec997c1d5 fix: よくない修正だったのでロールバック 2024-08-11 16:33:22 +09:00
usbharu 94f790d039 test: 権限チェックのテストを追加 2024-08-11 16:07:10 +09:00
usbharu ed3b3f07fb fix: 自分自身の投稿が見えないようになっていた問題を修正 2024-08-11 13:10:10 +09:00
usbharu 146b907c69 feat: QueryServiceの認可処理を追加して起動できるように 2024-08-11 12:33:37 +09:00
usbharu 540fe0eaa5 feat: 権限チェック等を追加 2024-08-11 01:22:43 +09:00
usbharu 1a3fc05dad feat: ローカルユーザーのみ使用できる部分を変更 2024-08-11 00:30:24 +09:00
usbharu 507c1d8932 refactor: principalのactorIdを使用するように 2024-08-11 00:28:32 +09:00
renovate[bot] 4fb32d7928 fix(deps): update dependency software.amazon.awssdk:s3 to v2.27.2 2024-08-10 15:24:55 +00:00
usbharu e082b0b7b9 Merge pull request #530 from usbharu/use-owl-jar
OWLをビルド済みライブラリをとして読み込むように
2024-08-10 19:48:32 +09:00
usbharu 700a8d8ed1 Merge branch 'develop' into use-owl-jar 2024-08-10 19:45:42 +09:00
usbharu cb408fd192 Merge pull request #524 from usbharu/renovate/actions-github-script-7.x
chore(deps): update actions/github-script action to v7
2024-08-10 19:44:43 +09:00
usbharu 2e38c64a3d chore: 構成キャッシュをしないように 2024-08-10 19:44:35 +09:00
usbharu 4a665029ec chore: 2024-08-10 19:40:09 +09:00
usbharu a1b4631a13 chore: 2024-08-10 19:38:36 +09:00
renovate[bot] 86c8fb0bad chore(deps): update actions/github-script action to v7 2024-08-10 08:08:43 +00:00
usbharu 96e2f9b420 Merge pull request #527 from usbharu/master
Master
2024-08-10 17:07:47 +09:00
usbharu ecd59cd886 Merge pull request #526 from usbharu/release
[OWL] Release 0.0.1
2024-08-10 17:03:13 +09:00
usbharu 0983f39a17 chore: snapshot 2024-08-10 17:01:26 +09:00
usbharu 0d671b2557 chore: トークン忘れてた2 2024-08-10 16:58:09 +09:00
usbharu 7b1e99095b chore: トークン忘れてた 2024-08-10 16:56:13 +09:00
767 changed files with 19688 additions and 4506 deletions
@@ -19,7 +19,7 @@ jobs:
- name: Check diff
id: check-diff
uses: actions/github-script@v3
uses: actions/github-script@v7
with:
result-encoding: 'json'
script: |
@@ -75,4 +75,8 @@ jobs:
- name: Publish OWL Gitea
if: ${{ github.base_ref == 'master' && contains( needs.release-diff-check.outputs.diff , 'owl')}}
run: ./owl/gradlew :owl:publishMavenPublicationToGiteaRepository
run: ./owl/gradlew :owl:publishMavenPublicationToGiteaRepository
env:
USERNAME: ${{ github.actor }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITEA: ${{ secrets.GITEA }}
+87 -53
View File
@@ -1,16 +1,14 @@
name: PullRequest Merge Check
name: pull-request-merge-check.yml
on:
pull_request:
paths-ignore:
- 'owl/**'
branches:
- "develop"
types:
- opened # default
- reopened # default
- synchronize # default
- ready_for_review # 必要
- opened
- reopened
- synchronize
- ready_for_review
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
@@ -22,13 +20,75 @@ permissions:
pull-requests: write
jobs:
setup:
name: Setup
change:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
outputs:
hideout: ${{ steps.filter.outputs.hideout }}
owl: ${{ steps.filter.outputs.owl }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
- name: Check Changes
uses: dorny/paths-filter@v3
id: filter
with:
filters: |
hideout:
- 'hideout/**'
- 'libs.versions.toml'
owl:
- 'owl/**'
- 'libs.versions.toml'
hideout-setup:
needs:
- change
if: github.event.pull_request.draft == false && needs.change.outputs.hideout == 'true'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
- name: Gradle Wrapper Validation
uses: gradle/actions/wrapper-validation@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
cache-read-only: false
gradle-home-cache-cleanup: true
- name: Build
run: ./gradlew :hideout:test
- name: JUnit Test Report
if: ${{ always() }}
uses: mikepenz/action-junit-report@v5
with:
report_paths: '**/TEST-*.xml'
check_name: 'hideout-core JUnit Test Report'
owl-setup:
needs:
- change
if: github.event.pull_request.draft == false && needs.change.outputs.owl == 'true'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
- name: Gradle Wrapper Validation
uses: gradle/actions/wrapper-validation@v4
@@ -46,57 +106,31 @@ jobs:
gradle-home-cache-cleanup: true
- name: Build
run: ./gradlew :hideout-core:classes
unit-test:
name: Unit Test
needs: [ setup ]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
cache-read-only: false
gradle-home-cache-cleanup: true
- name: Unit Test
run: ./gradlew :hideout-core:koverXmlReport
- name: Add coverage report to PR
if: always()
id: kover
uses: madrapps/jacoco-report@v1.6.1
with:
paths: |
${{ github.workspace }}/hideout-core/build/reports/kover/report.xml
token: ${{ secrets.GITHUB_TOKEN }}
title: Code Coverage
update-comment: true
min-coverage-overall: 80
min-coverage-changed-files: 80
coverage-counter-type: LINE
run: ./gradlew :owl:test
- name: JUnit Test Report
uses: mikepenz/action-junit-report@v4
if: ${{ always() }}
uses: mikepenz/action-junit-report@v5
with:
report_paths: '**/TEST-*.xml'
check_name: 'owl JUnit Test Report'
lint:
name: Lint
needs: [ setup ]
if: always() && (needs.change.outputs.hideout == 'true' || needs.change.outputs.owl == 'true')
needs:
- change
- hideout-setup
- owl-setup
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.PAT }}
- name: Set up JDK 21
uses: actions/setup-java@v4
@@ -110,8 +144,8 @@ jobs:
cache-read-only: false
gradle-home-cache-cleanup: true
- name: Build with Gradle
run: ./gradlew :hideout-core:detektMain
- name: Lint
run: ./gradlew :hideout:detekt :owl:detektMain
- name: Auto Commit
if: ${{ always() }}
+4 -1
View File
@@ -42,9 +42,12 @@ out/
/tomcat/
/tomcat-e2e/
/e2eTest.log
/files/
*.log
/hideout-core/files/
/hideout-core/.kotlin/sessions/
/hideout-mastodon/.kotlin/sessions/
/http-client.private.env.json
**/logs/
/hideout-mastodon/logs/
**/files/
+1 -73
View File
@@ -1,75 +1,3 @@
# Hideout
HideoutはMastodon互換APIを備えたSNSで、ActivityPubに対応し、KotlinとSpring Frameworkを使用して制作されているソフトウェアです。現在は開発中で、SNSとして主要な機能を備えていますが、セキュリティの問題や不安定なテーブル定義などがあるためホストすることはおすすめしません。
## 特徴
### ActivityPubでつながるネットワーク
ActivityPubを実装しているためMastodonやMisskey、Pleromaとつながることができます。また、ActivityPub以外の分散型の通信プロトコルを実装することがあるかもしれません。
### Mastodon互換API
OAuth2プロバイダーを含めたほとんどのAPIがMastodonとの互換性を持っているため、既存のMastodon クライアントを使用することができます!また、今後Fedibirdやglitch-soc互換のAPIを実装するかもしれません。
## セルフホスト
> [!CAUTION]
> **免責事項**
>
> 本ソフトウェアを利用して発生したすべての事象に対して開発者は責任を負いません。
> 本ソフトウェアはApache License 2.0を採用しています。
現時点でセルフホストはおすすめしませんが、実験用としてホストすることはできます!
### 使用技術
- **Kotlin** 強力な言語機能でアプリケーションの安全性を高めます。
- **Spring Framework** (Spring Boot/Spring Security/Spring Web/Spring Data) 豊富な機能と堅牢なライブラリでソフトウェアの基幹部分を担います。
- **OpenAPI** スキーマファーストのエンドポイント自動生成はAPIの安定性を高めます。
### 要件
#### 起動
- Java 21
- PostgreSQL 12+
- MongoDB(必須でない) 4.4.x+
#### ビルド
- Java 21
- Gradle 8+
実験用途として、PostgreSQLはH2DB(バンドル)のPostgreSQL互換モードでも問題ありません。
Java 17でもビルド/起動ができますが、サポートしません。
MongoDBを使用しない場合、構成で`hideout.use-mongodb`をfalseにする必要があります。
### ビルド
今後のリリースでビルド済みjarなどを使う場合はスキップしてください。
```bash
gradle bootJar
```
`build/libs/hideout-x.x.x.jar`が生成されます。
### 起動
適切に設定した`application-dev.yml`などをクラスパス上に準備します。
`dev``prod`などに置き換えたり、[複数指定すること](https://spring.pleiades.io/spring-boot/docs/current/reference/html/application-properties.html#application-properties.core.spring.profiles.active)もできます。
```bash
java -jar build/libs/hideout-x.x.x.jar --spring.profiles.active=dev
```
https://spring.pleiades.io/spring-boot/docs/current/reference/html/getting-started.html#getting-started.first-application.executable-jar.gradle
### 注意事項
本ソフトウェアは開発中です。正常に機能しない場合があります。また、連合先に迷惑をかける事になる可能性があります。DB/設定ファイル/その他リソースなどの利用方法に破壊的な変更が入る可能性があります。
ActivityPubで繋がれるSNSを目指している
-53
View File
@@ -14,57 +14,4 @@
* limitations under the License.
*/
plugins {
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.spring.boot)
alias(libs.plugins.kotlin.spring)
}
apply {
plugin("io.spring.dependency-management")
}
repositories {
mavenCentral()
maven {
url = uri("https://git.usbharu.dev/api/packages/usbharu/maven")
}
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/usbharu/http-signature")
credentials {
username = project.findProperty("gpr.user") as String? ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") as String? ?: System.getenv("TOKEN")
}
}
maven {
name = "GitHubPackages2"
url = uri("https://maven.pkg.github.com/multim-dev/emoji-kt")
credentials {
username = project.findProperty("gpr.user") as String? ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") as String? ?: System.getenv("TOKEN")
}
}
}
configurations {
all {
exclude("org.springframework.boot", "spring-boot-starter-logging")
exclude("ch.qos.logback", "logback-classic")
}
}
dependencies {
implementation("dev.usbharu:hideout-core:0.0.1")
implementation("dev.usbharu:hideout-mastodon:1.0-SNAPSHOT")
}
tasks.register("run") {
dependsOn(gradle.includedBuild("hideout-core").task(":run"))
}
springBoot {
mainClass = "dev.usbharu.hideout.SpringApplicationKt"
}
+58
View File
@@ -0,0 +1,58 @@
version: "3"
services:
db:
image: postgres:17
ports:
- "5432:5432"
environment:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "password"
POSTGRES_DB: "hideout"
mongodb:
image: mongo:8.0.12
ports:
- "27017:27017"
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.29
container_name: elasticsearch
environment:
- discovery.type=single-node
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- xpack.security.enabled=true
- xpack.monitoring.collection.enabled=true
- ELASTIC_PASSWORD=Passw0rd
- "ES_JAVA_OPTS=-Xms512M -Xmx512M"
ports:
- "9200:9200"
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
kibana:
image: docker.elastic.co/kibana/kibana:7.17.29
container_name: kibana
ports:
- "5601:5601"
environment:
- ELASTICSEARCH_URL=http://elasticsearch:9200
- ELASTICSEARCH_USERNAME=elastic
- ELASTICSEARCH_PASSWORD=Passw0rd
depends_on:
- elasticsearch
fluentd:
build: ./fluentd
volumes:
- ./fluentd/conf:/fluentd/etc
- ../logs:/in
depends_on:
- "elasticsearch"
ports:
- "24224:24224"
- "24224:24224/udp"
volumes:
elasticsearch-data:
driver: local
+4
View File
@@ -0,0 +1,4 @@
FROM fluent/fluentd:v1.16-debian-2
USER root
RUN fluent-gem install fluent-plugin-elasticsearch --no-document
USER fluent
+22
View File
@@ -0,0 +1,22 @@
<source>
@type tail
path /in/logFile.log.json
pos_file /in/logFile.pos
tag hideout
<parse>
@type json
</parse>
</source>
<match hideout>
@type elasticsearch
host elasticsearch
include_tag_key true
port 9200
include_timestamp true
user elastic
password Passw0rd
logstash_format true
logstash_prefix hideout
flush_interval 10s
</match>
+19
View File
@@ -0,0 +1,19 @@
{
"dev": {
"name": "value",
"Security": {
"Auth": {
"auth-id": {
"Type": "OAuth2",
"Grant Type": "Authorization Code",
"Client ID": "{{client_id}}",
"Client Secret": "{{client_secret}}",
"Redirect URL": "https://example.com",
"Token URL": "http://{{host}}/oauth/token",
"Auth URL": "http://{{host}}/oauth/authorize",
"Scope": "write read"
}
}
}
}
}
+14
View File
@@ -0,0 +1,14 @@
POST http://{{host}}/api/v1/apps
Accept: application/json
Content-Type: application/json
{
"client_name": "test-client",
"redirect_uris": "https://example.com",
"scopes": "write read"
}
###
GET http://{{host}}/api/v1/accounts/verify_credentials
Authorization: Bearer {{$auth.token("auth-id")}}
-11
View File
@@ -1,11 +0,0 @@
version: "3"
services:
db:
image: postgres:16
ports:
- "5432:5432"
environment:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "password"
POSTGRES_DB: "hideout"
+2 -1
View File
@@ -1,4 +1,5 @@
org.gradle.parallel=true
org.gradle.configureondemand=true
org.gradle.caching=true
org.gradle.jvmargs=-Xmx4096m -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParallelGC --add-opens=java.base/java.util.concurrent.locks=ALL-UNNAMED -XX:TieredStopAtLevel=1 -noverify
org.gradle.jvmargs=-Xmx4096m -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParallelGC --add-opens=java.base/java.util.concurrent.locks=ALL-UNNAMED
kotlin.compiler.preciseCompilationResultsBackup=true
Binary file not shown.
+1 -1
View File
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Vendored
+4 -5
View File
@@ -86,8 +86,7 @@ done
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
' "$PWD" ) || exit
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
@@ -115,7 +114,7 @@ case "$( uname )" in #(
NONSTOP* ) nonstop=true ;;
esac
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
CLASSPATH="\\\"\\\""
# Determine the Java command to use to start the JVM.
@@ -206,7 +205,7 @@ fi
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Collect all arguments for the java command:
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
# and any embedded shellness will be escaped.
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
# treated as '${Hostname}' itself on the command line.
@@ -214,7 +213,7 @@ DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \
-classpath "$CLASSPATH" \
org.gradle.wrapper.GradleWrapperMain \
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
"$@"
# Stop when "xargs" is not available.
Vendored
+2 -2
View File
@@ -70,11 +70,11 @@ goto fail
:execute
@rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
set CLASSPATH=
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
:end
@rem End local scope for the variables with windows NT shell
-21
View File
@@ -1,21 +0,0 @@
plugins {
kotlin("jvm") version "1.9.25"
}
group = "dev.usbharu"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
testImplementation(kotlin("test"))
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(21)
}
Binary file not shown.
@@ -1,7 +0,0 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
-5
View File
@@ -1,5 +0,0 @@
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}
rootProject.name = "hideout-activitypub"
@@ -1,5 +0,0 @@
package dev.usbharu
fun main() {
println("Hello World!")
}
-22
View File
@@ -1,22 +0,0 @@
#
# Copyright (C) 2024 usbharu
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
kotlin.code.style=official
org.gradle.parallel=true
org.gradle.configureondemand=true
org.gradle.caching=true
org.gradle.jvmargs=-Xmx4096m -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParallelGC
org.gradle.configuration-cache=true
org.gradle.configuration-cache.problems=warn
Binary file not shown.
-252
View File
@@ -1,252 +0,0 @@
#!/bin/sh
#
# Copyright © 2015-2021 the original authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
#
##############################################################################
#
# Gradle start up script for POSIX generated by Gradle.
#
# Important for running:
#
# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
# noncompliant, but you have some other compliant shell such as ksh or
# bash, then to run this script, type that shell name before the whole
# command line, like:
#
# ksh Gradle
#
# Busybox and similar reduced shells will NOT work, because this script
# requires all of these POSIX shell features:
# * functions;
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
# * compound commands having a testable exit status, especially «case»;
# * various built-in commands including «command», «set», and «ulimit».
#
# Important for patching:
#
# (2) This script targets any POSIX shell, so it avoids extensions provided
# by Bash, Ksh, etc; in particular arrays are avoided.
#
# The "traditional" practice of packing multiple parameters into a
# space-separated string is a well documented source of bugs and security
# problems, so this is (mostly) avoided, by progressively accumulating
# options in "$@", and eventually passing that to Java.
#
# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
# see the in-line comments for details.
#
# There are tweaks for specific operating systems such as AIX, CygWin,
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
#
##############################################################################
# Attempt to set APP_HOME
# Resolve links: $0 may be a link
app_path=$0
# Need this for daisy-chained symlinks.
while
APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
[ -h "$app_path" ]
do
ls=$( ls -ld "$app_path" )
link=${ls#*' -> '}
case $link in #(
/*) app_path=$link ;; #(
*) app_path=$APP_HOME$link ;;
esac
done
# This is normally unused
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
' "$PWD" ) || exit
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
warn () {
echo "$*"
} >&2
die () {
echo
echo "$*"
echo
exit 1
} >&2
# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
nonstop=false
case "$( uname )" in #(
CYGWIN* ) cygwin=true ;; #(
Darwin* ) darwin=true ;; #(
MSYS* | MINGW* ) msys=true ;; #(
NONSTOP* ) nonstop=true ;;
esac
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD=$JAVA_HOME/jre/sh/java
else
JAVACMD=$JAVA_HOME/bin/java
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD=java
if ! command -v java >/dev/null 2>&1
then
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
fi
# Increase the maximum file descriptors if we can.
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
case $MAX_FD in #(
max*)
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC2039,SC3045
MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit"
esac
case $MAX_FD in #(
'' | soft) :;; #(
*)
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC2039,SC3045
ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD"
esac
fi
# Collect all arguments for the java command, stacking in reverse order:
# * args from the command line
# * the main class name
# * -classpath
# * -D...appname settings
# * --module-path (only if needed)
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
# For Cygwin or MSYS, switch paths to Windows format before running java
if "$cygwin" || "$msys" ; then
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
JAVACMD=$( cygpath --unix "$JAVACMD" )
# Now convert the arguments - kludge to limit ourselves to /bin/sh
for arg do
if
case $arg in #(
-*) false ;; # don't mess with options #(
/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
[ -e "$t" ] ;; #(
*) false ;;
esac
then
arg=$( cygpath --path --ignore --mixed "$arg" )
fi
# Roll the args list around exactly as many times as the number of
# args, so each arg winds up back in the position where it started, but
# possibly modified.
#
# NB: a `for` loop captures its iteration list before it begins, so
# changing the positional parameters here affects neither the number of
# iterations, nor the values presented in `arg`.
shift # remove old arg
set -- "$@" "$arg" # push replacement arg
done
fi
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Collect all arguments for the java command:
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
# and any embedded shellness will be escaped.
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
# treated as '${Hostname}' itself on the command line.
set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \
-classpath "$CLASSPATH" \
org.gradle.wrapper.GradleWrapperMain \
"$@"
# Stop when "xargs" is not available.
if ! command -v xargs >/dev/null 2>&1
then
die "xargs is not available"
fi
# Use "xargs" to parse quoted args.
#
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
#
# In Bash we could simply go:
#
# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
# set -- "${ARGS[@]}" "$@"
#
# but POSIX shell has neither arrays nor command substitution, so instead we
# post-process each arg (as a line of input to sed) to backslash-escape any
# character that might be a shell metacharacter, then use eval to reverse
# that process (while maintaining the separation between arguments), and wrap
# the whole thing up as a single "set" statement.
#
# This will of course break if any of these variables contains a newline or
# an unmatched quote.
#
eval "set -- $(
printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
xargs -n1 |
sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
tr '\n' ' '
)" '"$@"'
exec "$JAVACMD" "$@"
-94
View File
@@ -1,94 +0,0 @@
@rem
@rem Copyright 2015 the original author or authors.
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem https://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem
@rem SPDX-License-Identifier: Apache-2.0
@rem
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
@rem This is normally unused
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if %ERRORLEVEL% equ 0 goto execute
echo. 1>&2
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto execute
echo. 1>&2
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
:execute
@rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
:end
@rem End local scope for the variables with windows NT shell
if %ERRORLEVEL% equ 0 goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega
-18
View File
@@ -1,18 +0,0 @@
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}
rootProject.name = "hideout-core"
includeBuild("../owl")
dependencyResolutionManagement {
repositories {
mavenCentral()
}
versionCatalogs {
create("libs") {
from(files("../libs.versions.toml"))
}
}
}
@@ -1,5 +0,0 @@
package dev.usbharu.hideout.core.application.actor
import dev.usbharu.hideout.core.domain.model.actor.ActorId
data class DeleteLocalActor(val actorId: ActorId)
@@ -1,3 +0,0 @@
package dev.usbharu.hideout.core.application.actor
data class MigrationLocalActor(val from: Long, val to: Long)
@@ -1,8 +0,0 @@
package dev.usbharu.hideout.core.application.actor
import org.springframework.stereotype.Service
@Service
interface SetAlsoKnownAsLocalActorApplicationService {
suspend fun setAlsoKnownAs(actorId: Long, alsoKnownAs: List<Long>)
}
@@ -1,10 +0,0 @@
package dev.usbharu.hideout.core.application.domainevent.subscribers
import dev.usbharu.hideout.core.domain.shared.domainevent.DomainEvent
import dev.usbharu.hideout.core.domain.shared.domainevent.DomainEventBody
interface DomainEventSubscriber {
fun <T : DomainEventBody> subscribe(eventName: String, domainEventConsumer: DomainEventConsumer<T>)
}
typealias DomainEventConsumer<T> = suspend (DomainEvent<T>) -> Unit
@@ -1,3 +0,0 @@
package dev.usbharu.hideout.core.application.domainevent.subscribers
interface Subscriber
@@ -1,11 +0,0 @@
package dev.usbharu.hideout.core.application.domainevent.subscribers
import org.springframework.boot.ApplicationArguments
import org.springframework.boot.ApplicationRunner
import org.springframework.stereotype.Component
@Component
class SubscriberRunner(subscribers: List<Subscriber>) : ApplicationRunner {
override fun run(args: ApplicationArguments?) {
}
}
@@ -1,22 +0,0 @@
package dev.usbharu.hideout.core.application.domainevent.subscribers
import dev.usbharu.hideout.core.domain.event.post.PostEvent
import dev.usbharu.hideout.core.domain.event.post.PostEventBody
import org.slf4j.LoggerFactory
import org.springframework.stereotype.Component
@Component
class TimelinePostCreateSubscriber(domainEventSubscriber: DomainEventSubscriber) : Subscriber {
init {
domainEventSubscriber.subscribe<PostEventBody>(PostEvent.CREATE.eventName) {
val post = it.body.getPost()
val actor = it.body.getActor()
logger.info("New Post! : {}", post)
}
}
companion object {
private val logger = LoggerFactory.getLogger(TimelinePostCreateSubscriber::class.java)
}
}
@@ -1,50 +0,0 @@
package dev.usbharu.hideout.core.application.domainevent.subscribers
import dev.usbharu.hideout.core.application.timeline.AddTimelineRelationship
import dev.usbharu.hideout.core.application.timeline.UserAddTimelineRelationshipApplicationService
import dev.usbharu.hideout.core.domain.event.relationship.RelationshipEvent
import dev.usbharu.hideout.core.domain.event.relationship.RelationshipEventBody
import dev.usbharu.hideout.core.domain.model.timelinerelationship.TimelineRelationship
import dev.usbharu.hideout.core.domain.model.timelinerelationship.TimelineRelationshipId
import dev.usbharu.hideout.core.domain.model.timelinerelationship.Visible
import dev.usbharu.hideout.core.domain.model.userdetails.UserDetailRepository
import dev.usbharu.hideout.core.domain.shared.id.IdGenerateService
import org.slf4j.LoggerFactory
import org.springframework.stereotype.Component
@Component
class TimelineRelationshipFollowSubscriber(
private val userAddTimelineRelationshipApplicationService: UserAddTimelineRelationshipApplicationService,
private val idGenerateService: IdGenerateService,
private val userDetailRepository: UserDetailRepository,
domainEventSubscriber: DomainEventSubscriber
) : Subscriber {
init {
domainEventSubscriber.subscribe<RelationshipEventBody>(RelationshipEvent.FOLLOW.eventName) {
val relationship = it.body.getRelationship()
val userDetail = userDetailRepository.findByActorId(relationship.actorId.id) ?: throw Exception()
if (userDetail.homeTimelineId == null) {
logger.warn("Home timeline for ${relationship.actorId} is not found")
return@subscribe
}
userAddTimelineRelationshipApplicationService.execute(
AddTimelineRelationship(
TimelineRelationship(
TimelineRelationshipId(idGenerateService.generateId()),
userDetail.homeTimelineId,
relationship.targetActorId,
Visible.FOLLOWERS
)
), it.body.principal
)
}
}
companion object {
private val logger = LoggerFactory.getLogger(TimelineRelationshipFollowSubscriber::class.java)
}
}
@@ -1,14 +0,0 @@
package dev.usbharu.hideout.core.application.exception
class InternalServerException : RuntimeException {
constructor() : super()
constructor(message: String?) : super(message)
constructor(message: String?, cause: Throwable?) : super(message, cause)
constructor(cause: Throwable?) : super(cause)
constructor(message: String?, cause: Throwable?, enableSuppression: Boolean, writableStackTrace: Boolean) : super(
message,
cause,
enableSuppression,
writableStackTrace
)
}
@@ -1,14 +0,0 @@
package dev.usbharu.hideout.core.application.exception
class PermissionDeniedException : RuntimeException {
constructor() : super()
constructor(message: String?) : super(message)
constructor(message: String?, cause: Throwable?) : super(message, cause)
constructor(cause: Throwable?) : super(cause)
constructor(message: String?, cause: Throwable?, enableSuppression: Boolean, writableStackTrace: Boolean) : super(
message,
cause,
enableSuppression,
writableStackTrace
)
}
@@ -1,50 +0,0 @@
/*
* Copyright (C) 2024 usbharu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package dev.usbharu.hideout.core.application.media
import dev.usbharu.hideout.core.domain.model.media.FileType
import dev.usbharu.hideout.core.domain.model.media.Media
import dev.usbharu.hideout.core.domain.model.media.MimeType
import java.net.URI
data class Media(
val id: Long,
val name: String,
val url: URI,
val thumbprintURI: URI?,
val remoteURL: URI?,
val type: FileType,
val mimeType: MimeType,
val blurHash: String?,
val description: String?
) {
companion object {
fun of(media: Media): dev.usbharu.hideout.core.application.media.Media {
return Media(
id = media.id.id,
name = media.name.name,
url = media.url,
thumbprintURI = media.thumbnailUrl,
remoteURL = media.remoteUrl,
type = media.type,
mimeType = media.mimeType,
blurHash = media.blurHash?.hash,
description = media.description?.description
)
}
}
}
@@ -1,3 +0,0 @@
package dev.usbharu.hideout.core.application.post
data class DeleteLocalPost(val postId: Long)
@@ -1,29 +0,0 @@
/*
* Copyright (C) 2024 usbharu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package dev.usbharu.hideout.core.application.post
import dev.usbharu.hideout.core.domain.model.post.Visibility
data class RegisterLocalPost(
val content: String,
val overview: String?,
val visibility: Visibility,
val repostId: Long?,
val replyId: Long?,
val sensitive: Boolean,
val mediaIds: List<Long>,
)
@@ -1,25 +0,0 @@
/*
* Copyright (C) 2024 usbharu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package dev.usbharu.hideout.core.application.post
data class UpdateLocalNote(
val postId: Long,
val overview: String?,
val content: String,
val sensitive: Boolean,
val mediaIds: List<Long>
)
@@ -1,19 +0,0 @@
/*
* Copyright (C) 2024 usbharu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package dev.usbharu.hideout.core.application.relationship.acceptfollowrequest
data class AcceptFollowRequest(val sourceActorId: Long)
@@ -1,19 +0,0 @@
/*
* Copyright (C) 2024 usbharu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package dev.usbharu.hideout.core.application.relationship.block
data class Block(val targetActorId: Long)
@@ -1,19 +0,0 @@
/*
* Copyright (C) 2024 usbharu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package dev.usbharu.hideout.core.application.relationship.followrequest
data class FollowRequest(val targetActorId: Long)
@@ -1,19 +0,0 @@
/*
* Copyright (C) 2024 usbharu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package dev.usbharu.hideout.core.application.relationship.get
data class GetRelationship(val targetActorId: Long)
@@ -1,19 +0,0 @@
/*
* Copyright (C) 2024 usbharu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package dev.usbharu.hideout.core.application.relationship.mute
data class Mute(val targetActorId: Long)
@@ -1,19 +0,0 @@
/*
* Copyright (C) 2024 usbharu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package dev.usbharu.hideout.core.application.relationship.rejectfollowrequest
data class RejectFollowRequest(val sourceActorId: Long)
@@ -1,19 +0,0 @@
/*
* Copyright (C) 2024 usbharu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package dev.usbharu.hideout.core.application.relationship.removefromfollowers
data class RemoveFromFollowers(val targetActorId: Long)
@@ -1,19 +0,0 @@
/*
* Copyright (C) 2024 usbharu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package dev.usbharu.hideout.core.application.relationship.unblock
data class Unblock(val targetActorId: Long)
@@ -1,19 +0,0 @@
/*
* Copyright (C) 2024 usbharu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package dev.usbharu.hideout.core.application.relationship.unfollow
data class Unfollow(val targetActorId: Long)
@@ -1,15 +0,0 @@
package dev.usbharu.hideout.core.application.shared
import dev.usbharu.hideout.core.domain.model.support.principal.FromApi
import dev.usbharu.hideout.core.domain.model.support.principal.Principal
import org.slf4j.Logger
abstract class LocalUserAbstractApplicationService<T : Any, R>(transaction: Transaction, logger: Logger) :
AbstractApplicationService<T, R>(transaction, logger) {
override suspend fun internalExecute(command: T, principal: Principal): R {
require(principal is FromApi)
return internalExecute(command, principal)
}
protected abstract suspend fun internalExecute(command: T, principal: FromApi): R
}
@@ -1,7 +0,0 @@
package dev.usbharu.hideout.core.application.timeline
import dev.usbharu.hideout.core.domain.model.timelinerelationship.TimelineRelationship
data class AddTimelineRelationship(
val timelineRelationship: TimelineRelationship
)
@@ -1,26 +0,0 @@
package dev.usbharu.hideout.core.application.timeline
import dev.usbharu.hideout.core.application.shared.AbstractApplicationService
import dev.usbharu.hideout.core.application.shared.Transaction
import dev.usbharu.hideout.core.domain.model.support.principal.Principal
import dev.usbharu.hideout.core.domain.model.timelinerelationship.TimelineRelationshipRepository
import org.slf4j.LoggerFactory
import org.springframework.stereotype.Service
@Service
class UserAddTimelineRelationshipApplicationService(
private val timelineRelationshipRepository: TimelineRelationshipRepository,
transaction: Transaction
) :
AbstractApplicationService<AddTimelineRelationship, Unit>(
transaction, logger
) {
override suspend fun internalExecute(command: AddTimelineRelationship, principal: Principal) {
timelineRelationshipRepository.save(command.timelineRelationship)
}
companion object {
private val logger = LoggerFactory.getLogger(UserAddTimelineRelationshipApplicationService::class.java)
}
}
@@ -1,8 +0,0 @@
package dev.usbharu.hideout.core.config
import org.springframework.boot.context.properties.ConfigurationProperties
@ConfigurationProperties("hideout.timeline.default")
data class DefaultTimelineStoreConfig(
val actorPostsCount: Int = 500
)
@@ -1,16 +0,0 @@
package dev.usbharu.hideout.core.config
import org.springframework.boot.autoconfigure.flyway.FlywayMigrationStrategy
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
@Configuration
class FlywayConfig {
@Bean
fun cleanMigrateStrategy(): FlywayMigrationStrategy {
return FlywayMigrationStrategy { migrate ->
migrate.repair()
migrate.migrate()
}
}
}
@@ -1,10 +0,0 @@
package dev.usbharu.hideout.core.config
import org.springframework.boot.context.properties.ConfigurationProperties
@ConfigurationProperties("hideout.media.image.imageio")
data class ImageIOImageConfig(
val thumbnailsWidth: Int = 1000,
val thumbnailsHeight: Int = 1000,
val format: String = "jpeg"
)
@@ -1,16 +0,0 @@
package dev.usbharu.hideout.core.domain.event.timeline
import dev.usbharu.hideout.core.domain.model.timeline.Timeline
import dev.usbharu.hideout.core.domain.shared.domainevent.DomainEvent
import dev.usbharu.hideout.core.domain.shared.domainevent.DomainEventBody
class TimelineEventFactory(private val timeline: Timeline) {
fun createEvent(timelineEvent: TimelineEvent): DomainEvent<TimelineEventBody> =
DomainEvent.create(timelineEvent.eventName, TimelineEventBody(timeline))
}
class TimelineEventBody(timeline: Timeline) : DomainEventBody(mapOf("timeline" to timeline))
enum class TimelineEvent(val eventName: String) {
CHANGE_VISIBILITY("ChangeVisibility")
}
@@ -1,6 +0,0 @@
package dev.usbharu.hideout.core.domain.model.filter
enum class FilterAction {
WARN,
HIDE
}
@@ -1,9 +0,0 @@
package dev.usbharu.hideout.core.domain.model.filter
enum class FilterContext {
HOME,
NOTIFICATION,
PUBLIC,
THREAD,
ACCOUNT
}
@@ -1,8 +0,0 @@
package dev.usbharu.hideout.core.domain.model.filter
@JvmInline
value class FilterId(val id: Long) {
init {
require(0 <= id)
}
}
@@ -1,7 +0,0 @@
package dev.usbharu.hideout.core.domain.model.filter
class FilterKeyword(
val id: FilterKeywordId,
var keyword: FilterKeywordKeyword,
val mode: FilterMode
)
@@ -1,4 +0,0 @@
package dev.usbharu.hideout.core.domain.model.filter
@JvmInline
value class FilterKeywordId(val id: Long)
@@ -1,4 +0,0 @@
package dev.usbharu.hideout.core.domain.model.filter
@JvmInline
value class FilterKeywordKeyword(val keyword: String)
@@ -1,7 +0,0 @@
package dev.usbharu.hideout.core.domain.model.filter
enum class FilterMode {
WHOLE_WORD,
REGEX,
NONE
}
@@ -1,10 +0,0 @@
package dev.usbharu.hideout.core.domain.model.filter
class FilterName(name: String) {
val name = name.take(LENGTH)
companion object {
const val LENGTH = 300
}
}
@@ -1,13 +0,0 @@
package dev.usbharu.hideout.core.domain.model.filter
import dev.usbharu.hideout.core.domain.model.userdetails.UserDetailId
interface FilterRepository {
suspend fun save(filter: Filter): Filter
suspend fun delete(filter: Filter)
suspend fun findByFilterKeywordId(filterKeywordId: FilterKeywordId): Filter?
suspend fun findByFilterId(filterId: FilterId): Filter?
suspend fun findByUserDetailId(userDetailId: UserDetailId): List<Filter>
}
@@ -1,3 +0,0 @@
package dev.usbharu.hideout.core.domain.model.filter
class FilterResult(val filter: Filter, val matchedKeyword: String)
@@ -1,5 +0,0 @@
package dev.usbharu.hideout.core.domain.model.filter
import dev.usbharu.hideout.core.domain.model.post.Post
class FilteredPost(val post: Post, val filterResults: List<FilterResult>)
@@ -1,6 +0,0 @@
package dev.usbharu.hideout.core.domain.model.followtimeline
import dev.usbharu.hideout.core.domain.model.timeline.TimelineId
import dev.usbharu.hideout.core.domain.model.userdetails.UserDetailId
class FollowTimeline(val userDetailId: UserDetailId, val timelineId: TimelineId)
@@ -1,6 +0,0 @@
package dev.usbharu.hideout.core.domain.model.followtimeline
interface FollowTimelineRepository {
suspend fun save(followTimeline: FollowTimeline): FollowTimeline
suspend fun delete(followTimeline: FollowTimeline)
}
@@ -1,10 +0,0 @@
package dev.usbharu.hideout.core.domain.model.support.acct
data class Acct(
val userpart: String,
val host: String
) {
override fun toString(): String {
return "acct:$userpart@$host"
}
}
@@ -1,3 +0,0 @@
package dev.usbharu.hideout.core.domain.model.support.page
class PaginationList<T, ID>(list: List<T>, val next: ID?, val prev: ID?) : List<T> by list
@@ -1,22 +0,0 @@
package dev.usbharu.hideout.core.domain.model.support.postdetail
import dev.usbharu.hideout.core.domain.model.actor.Actor
import dev.usbharu.hideout.core.domain.model.post.Post
data class PostDetail(
val post: Post,
val reply: Post? = null,
val repost: Post? = null,
val postActor: Actor,
val replyActor: Actor? = null,
val repostActor: Actor? = null
) {
init {
require(post.replyId == reply?.id)
require(post.repostId == repost?.id)
require(post.actorId == postActor.id)
require(reply?.actorId == replyActor?.id)
require(repost?.actorId == repostActor?.id)
}
}
@@ -1,5 +0,0 @@
package dev.usbharu.hideout.core.domain.model.support.principal
import dev.usbharu.hideout.core.domain.model.actor.ActorId
data object Anonymous : Principal(ActorId.ghost, null, null)
@@ -1,15 +0,0 @@
package dev.usbharu.hideout.core.domain.model.support.principal
import dev.usbharu.hideout.core.domain.model.actor.ActorId
import dev.usbharu.hideout.core.domain.model.support.acct.Acct
import dev.usbharu.hideout.core.domain.model.userdetails.UserDetailId
class FromApi(
actorId: ActorId,
override val userDetailId: UserDetailId,
override val acct: Acct
) : Principal(
actorId,
userDetailId,
acct
)
@@ -1,5 +0,0 @@
package dev.usbharu.hideout.core.domain.model.support.principal
interface PrincipalContextHolder {
suspend fun getPrincipal(): Principal
}
@@ -1,56 +0,0 @@
package dev.usbharu.hideout.core.domain.model.support.timelineobjectdetail
import dev.usbharu.hideout.core.domain.model.actor.Actor
import dev.usbharu.hideout.core.domain.model.post.Post
import dev.usbharu.hideout.core.domain.model.post.PostId
import dev.usbharu.hideout.core.domain.model.timelineobject.TimelineObject
import dev.usbharu.hideout.core.domain.model.timelineobject.TimelineObjectId
import dev.usbharu.hideout.core.domain.model.timelineobject.TimelineObjectWarnFilter
import dev.usbharu.hideout.core.domain.model.userdetails.UserDetail
import java.time.Instant
data class TimelineObjectDetail(
val id: TimelineObjectId,
val postId: PostId,
val timelineUserDetail: UserDetail,
val post: Post,
val postActor: Actor,
val replyPost: Post?,
val replyPostActor: Actor?,
val repostPost: Post?,
val repostPostActor: Actor?,
val isPureRepost: Boolean,
val lastUpdateAt: Instant,
val hasMediaInRepost: Boolean,
val warnFilter: List<TimelineObjectWarnFilter>
) {
companion object {
fun of(
timelineObject: TimelineObject,
timelineUserDetail: UserDetail,
post: Post,
postActor: Actor,
replyPost: Post?,
replyPostActor: Actor?,
repostPost: Post?,
repostPostActor: Actor?,
warnFilter: List<TimelineObjectWarnFilter>
): TimelineObjectDetail {
return TimelineObjectDetail(
timelineObject.id,
post.id,
timelineUserDetail,
post,
postActor,
replyPost,
replyPostActor,
repostPost,
repostPostActor,
timelineObject.isPureRepost,
timelineObject.lastUpdatedAt,
timelineObject.hasMediaInRepost,
warnFilter
)
}
}
}
@@ -1,28 +0,0 @@
package dev.usbharu.hideout.core.domain.model.timeline
import dev.usbharu.hideout.core.domain.event.timeline.TimelineEvent
import dev.usbharu.hideout.core.domain.event.timeline.TimelineEventFactory
import dev.usbharu.hideout.core.domain.model.userdetails.UserDetail
import dev.usbharu.hideout.core.domain.model.userdetails.UserDetailId
import dev.usbharu.hideout.core.domain.shared.domainevent.DomainEventStorable
class Timeline(
val id: TimelineId,
val userDetailId: UserDetailId,
name: TimelineName,
visibility: TimelineVisibility,
val isSystem: Boolean
) : DomainEventStorable() {
var visibility = visibility
private set
fun setVisibility(visibility: TimelineVisibility, userDetail: UserDetail) {
check(isSystem.not())
require(userDetailId == userDetail.id)
this.visibility = visibility
addDomainEvent(TimelineEventFactory(this).createEvent(TimelineEvent.CHANGE_VISIBILITY))
}
var name = name
private set
}
@@ -1,4 +0,0 @@
package dev.usbharu.hideout.core.domain.model.timeline
@JvmInline
value class TimelineId(val value: Long)
@@ -1,4 +0,0 @@
package dev.usbharu.hideout.core.domain.model.timeline
@JvmInline
value class TimelineName(val value: String)
@@ -1,10 +0,0 @@
package dev.usbharu.hideout.core.domain.model.timeline
interface TimelineRepository {
suspend fun save(timeline: Timeline): Timeline
suspend fun delete(timeline: Timeline)
suspend fun findByIds(ids: List<TimelineId>): List<Timeline>
suspend fun findById(id: TimelineId): Timeline?
}
@@ -1,7 +0,0 @@
package dev.usbharu.hideout.core.domain.model.timeline
enum class TimelineVisibility {
PRIVATE,
UNLISTED,
PUBLIC
}
@@ -1,4 +0,0 @@
package dev.usbharu.hideout.core.domain.model.timelineobject
@JvmInline
value class TimelineObjectId(val value: Long)
@@ -1,5 +0,0 @@
package dev.usbharu.hideout.core.domain.model.timelineobject
import dev.usbharu.hideout.core.domain.model.filter.FilterId
data class TimelineObjectWarnFilter(val filterId: FilterId, val matchedKeyword: String)
@@ -1,18 +0,0 @@
package dev.usbharu.hideout.core.domain.model.timelinerelationship
import dev.usbharu.hideout.core.domain.model.actor.ActorId
import dev.usbharu.hideout.core.domain.model.timeline.TimelineId
class TimelineRelationship(
val id: TimelineRelationshipId,
val timelineId: TimelineId,
val actorId: ActorId,
val visible: Visible
)
enum class Visible {
PUBLIC,
UNLISTED,
FOLLOWERS,
DIRECT
}
@@ -1,4 +0,0 @@
package dev.usbharu.hideout.core.domain.model.timelinerelationship
@JvmInline
value class TimelineRelationshipId(val value: Long)
@@ -1,10 +0,0 @@
package dev.usbharu.hideout.core.domain.model.timelinerelationship
import dev.usbharu.hideout.core.domain.model.actor.ActorId
interface TimelineRelationshipRepository {
suspend fun save(timelineRelationship: TimelineRelationship): TimelineRelationship
suspend fun delete(timelineRelationship: TimelineRelationship)
suspend fun findByActorId(actorId: ActorId): List<TimelineRelationship>
}
@@ -1,54 +0,0 @@
package dev.usbharu.hideout.core.domain.service.post
import dev.usbharu.hideout.core.domain.model.post.Post
import dev.usbharu.hideout.core.domain.model.post.Visibility
import dev.usbharu.hideout.core.domain.model.relationship.Relationship
import dev.usbharu.hideout.core.domain.model.relationship.RelationshipRepository
import dev.usbharu.hideout.core.domain.model.support.principal.Anonymous
import dev.usbharu.hideout.core.domain.model.support.principal.Principal
import org.springframework.stereotype.Component
interface IPostReadAccessControl {
suspend fun isAllow(post: Post, principal: Principal): Boolean
}
@Component
class DefaultPostReadAccessControl(private val relationshipRepository: RelationshipRepository) :
IPostReadAccessControl {
override suspend fun isAllow(post: Post, principal: Principal): Boolean {
val relationship = (relationshipRepository.findByActorIdAndTargetId(post.actorId, principal.actorId)
?: Relationship.default(post.actorId, principal.actorId))
//ブロックされてたら見れない
if (relationship.blocking) {
return false
}
//PublicかUnlistedなら見れる
if (post.visibility == Visibility.PUBLIC || post.visibility == Visibility.UNLISTED) {
return true
}
//principalがAnonymousなら見れない
if (principal is Anonymous) {
return false
}
//DirectでvisibleActorsに含まれていたら見れる
if (post.visibility == Visibility.DIRECT && post.visibleActors.contains(principal.actorId)) {
return true
}
//Followersでフォロワーなら見れる
if (post.visibility == Visibility.FOLLOWERS) {
val inverseRelationship =
relationshipRepository.findByActorIdAndTargetId(principal.actorId, post.actorId) ?: return false
return inverseRelationship.following
}
//その他の場合は見れない
return false
}
}
@@ -1,5 +0,0 @@
package dev.usbharu.hideout.core.domain.shared.domainevent
interface DomainEventPublisher {
suspend fun publishEvent(domainEvent: DomainEvent<*>)
}
@@ -1,8 +0,0 @@
package dev.usbharu.hideout.core.external.media
import dev.usbharu.hideout.core.domain.model.media.MimeType
import java.nio.file.Path
interface FileTypeDeterminer {
fun fileType(path: Path, filename: String): MimeType
}
@@ -1,8 +0,0 @@
package dev.usbharu.hideout.core.external.mediastore
import java.net.URI
import java.nio.file.Path
interface MediaStore {
suspend fun upload(path: Path, id: String): URI
}
@@ -1,7 +0,0 @@
package dev.usbharu.hideout.core.external.timeline
data class ReadTimelineOption(
val mediaOnly: Boolean = false,
val local: Boolean = false,
val remote: Boolean = false,
)
@@ -1,7 +0,0 @@
package dev.usbharu.hideout.core.infrastructure.media.common
import java.awt.image.BufferedImage
interface GenerateBlurhash {
fun generateBlurhash(bufferedImage: BufferedImage): String
}
@@ -1,10 +0,0 @@
package dev.usbharu.hideout.core.infrastructure.media.common
import io.trbl.blurhash.BlurHash
import org.springframework.stereotype.Component
import java.awt.image.BufferedImage
@Component
class GenerateBlurhashImpl : GenerateBlurhash {
override fun generateBlurhash(bufferedImage: BufferedImage): String = BlurHash.encode(bufferedImage)
}
@@ -1,28 +0,0 @@
package dev.usbharu.hideout.core.infrastructure.springframework.domainevent
import dev.usbharu.hideout.core.application.domainevent.subscribers.DomainEventConsumer
import dev.usbharu.hideout.core.application.domainevent.subscribers.DomainEventSubscriber
import dev.usbharu.hideout.core.domain.shared.domainevent.DomainEvent
import dev.usbharu.hideout.core.domain.shared.domainevent.DomainEventBody
import org.springframework.context.event.EventListener
import org.springframework.stereotype.Component
@Component
class SpringFrameworkDomainEventSubscriber : DomainEventSubscriber {
val map = mutableMapOf<String, MutableList<DomainEventConsumer<*>>>()
override fun <T : DomainEventBody> subscribe(eventName: String, domainEventConsumer: DomainEventConsumer<T>) {
map.getOrPut(eventName) { mutableListOf() }.add(domainEventConsumer as DomainEventConsumer<*>)
}
@EventListener
suspend fun onDomainEventPublished(domainEvent: DomainEvent<*>) {
map[domainEvent.name]?.forEach {
try {
it.invoke(domainEvent)
} catch (e: Exception) {
}
}
}
}
@@ -1,27 +0,0 @@
package dev.usbharu.hideout.core.infrastructure.springframework.oauth2
import dev.usbharu.hideout.core.domain.model.support.acct.Acct
import dev.usbharu.hideout.core.domain.model.support.principal.FromApi
import dev.usbharu.hideout.core.domain.model.support.principal.PrincipalContextHolder
import dev.usbharu.hideout.core.domain.model.userdetails.UserDetailId
import dev.usbharu.hideout.core.query.principal.PrincipalQueryService
import org.springframework.security.core.context.SecurityContextHolder
import org.springframework.security.oauth2.jwt.Jwt
import org.springframework.stereotype.Component
@Component
class SpringSecurityOauth2PrincipalContextHolder(private val principalQueryService: PrincipalQueryService) :
PrincipalContextHolder {
override suspend fun getPrincipal(): FromApi {
val principal = SecurityContextHolder.getContext().authentication?.principal as Jwt
val id = principal.getClaim<String>("uid").toLong()
val userDetail = principalQueryService.findByUserDetailId(UserDetailId(id))
return FromApi(
userDetail.actorId,
userDetail.userDetailId,
Acct(userDetail.username, userDetail.host)
)
}
}
@@ -1,7 +0,0 @@
package dev.usbharu.hideout.core.interfaces.api.auth
data class SignUpForm(
val username: String,
val password: String,
// val recaptchaResponse: String
)
@@ -1,6 +0,0 @@
package dev.usbharu.hideout.core.query.principal
import dev.usbharu.hideout.core.domain.model.actor.ActorId
import dev.usbharu.hideout.core.domain.model.userdetails.UserDetailId
data class PrincipalDTO(val userDetailId: UserDetailId, val actorId: ActorId, val username: String, val host: String)
@@ -1,7 +0,0 @@
package dev.usbharu.hideout.core.query.principal
import dev.usbharu.hideout.core.domain.model.userdetails.UserDetailId
interface PrincipalQueryService {
suspend fun findByUserDetailId(userDetailId: UserDetailId): PrincipalDTO
}
@@ -1,55 +0,0 @@
#file: noinspection SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection,SpellCheckingInspection
hideout:
url: "https://test-hideout-dev.usbharu.dev"
use-mongodb: true
owl:
producer:
standalone: embedded
security:
jwt:
generate: true
key-id: a
private-key: "MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQC7VJTUt9Us8cKjMzEfYyjiWA4R4/M2bS1GB4t7NXp98C3SC6dVMvDuictGeurT8jNbvJZHtCSuYEvuNMoSfm76oqFvAp8Gy0iz5sxjZmSnXyCdPEovGhLa0VzMaQ8s+CLOyS56YyCFGeJZqgtzJ6GR3eqoYSW9b9UMvkBpZODSctWSNGj3P7jRFDO5VoTwCQAWbFnOjDfH5Ulgp2PKSQnSJP3AJLQNFNe7br1XbrhV//eO+t51mIpGSDCUv3E0DDFcWDTH9cXDTTlRZVEiR2BwpZOOkE/Z0/BVnhZYL71oZV34bKfWjQIt6V/isSMahdsAASACp4ZTGtwiVuNd9tybAgMBAAECggEBAKTmjaS6tkK8BlPXClTQ2vpz/N6uxDeS35mXpqasqskVlaAidgg/sWqpjXDbXr93otIMLlWsM+X0CqMDgSXKejLS2jx4GDjI1ZTXg++0AMJ8sJ74pWzVDOfmCEQ/7wXs3+cbnXhKriO8Z036q92Qc1+N87SI38nkGa0ABH9CN83HmQqt4fB7UdHzuIRe/me2PGhIq5ZBzj6h3BpoPGzEP+x3l9YmK8t/1cN0pqI+dQwYdgfGjackLu/2qH80MCF7IyQaseZUOJyKrCLtSD/Iixv/hzDEUPfOCjFDgTpzf3cwta8+oE4wHCo1iI1/4TlPkwmXx4qSXtmw4aQPz7IDQvECgYEA8KNThCO2gsC2I9PQDM/8Cw0O983WCDY+oi+7JPiNAJwv5DYBqEZB1QYdj06YD16XlC/HAZMsMku1na2TN0driwenQQWzoev3g2S7gRDoS/FCJSI3jJ+kjgtaA7Qmzlgk1TxODN+G1H91HW7t0l7VnL27IWyYo2qRRK3jzxqUiPUCgYEAx0oQs2reBQGMVZnApD1jeq7n4MvNLcPvt8b/eU9iUv6Y4Mj0Suo/AU8lYZXm8ubbqAlwz2VSVunD2tOplHyMUrtCtObAfVDUAhCndKaA9gApgfb3xw1IKbuQ1u4IF1FJl3VtumfQn//LiH1B3rXhcdyo3/vIttEk48RakUKClU8CgYEAzV7W3COOlDDcQd935DdtKBFRAPRPAlspQUnzMi5eSHMD/ISLDY5IiQHbIH83D4bvXq0X7qQoSBSNP7Dvv3HYuqMhf0DaegrlBuJllFVVq9qPVRnKxt1Il2HgxOBvbhOT+9in1BzA+YJ99UzC85O0Qz06A+CmtHEy4aZ2kj5hHjECgYEAmNS4+A8Fkss8Js1RieK2LniBxMgmYml3pfVLKGnzmng7H2+cwPLhPIzIuwytXywh2bzbsYEfYx3EoEVgMEpPhoarQnYPukrJO4gwE2o5Te6T5mJSZGlQJQj9q4ZB2Dfzet6INsK0oG8XVGXSpQvQh3RUYekCZQkBBFcpqWpbIEsCgYAnM3DQf3FJoSnXaMhrVBIovic5l0xFkEHskAjFTevO86Fsz1C2aSeRKSqGFoOQ0tmJzBEs1R6KqnHInicDTQrKhArgLXX4v3CddjfTRJkFWDbE/CkvKZNOrcf1nhaGCPspRJj2KUkj1Fhl9Cncdn/RsYEONbwQSjIfMPkvxF+8HQ=="
public-key: "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAu1SU1LfVLPHCozMxH2Mo4lgOEePzNm0tRgeLezV6ffAt0gunVTLw7onLRnrq0/IzW7yWR7QkrmBL7jTKEn5u+qKhbwKfBstIs+bMY2Zkp18gnTxKLxoS2tFczGkPLPgizskuemMghRniWaoLcyehkd3qqGElvW/VDL5AaWTg0nLVkjRo9z+40RQzuVaE8AkAFmxZzow3x+VJYKdjykkJ0iT9wCS0DRTXu269V264Vf/3jvredZiKRkgwlL9xNAwxXFg0x/XFw005UWVRIkdgcKWTjpBP2dPwVZ4WWC+9aGVd+Gyn1o0CLelf4rEjGoXbAAEgAqeGUxrcIlbjXfbcmwIDAQAB"
private: true
spring:
jmx:
enabled: false
jackson:
serialization:
WRITE_DATES_AS_TIMESTAMPS: false
default-property-inclusion: always
datasource:
driver-class-name: org.postgresql.Driver
url: "jdbc:postgresql:hideout"
username: "postgres"
password: "password"
data:
mongodb:
auto-index-creation: true
host: localhost
port: 27017
database: hideout
servlet:
multipart:
max-file-size: 40MB
max-request-size: 40MB
h2:
console:
enabled: true
threads:
virtual:
enabled: true
server:
tomcat:
basedir: tomcat
accesslog:
enabled: true
max-http-form-post-size: 40MB
max-swallow-size: 40MB
port: 8081
@@ -1,16 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="WARN">
<Appenders>
<Console name="Console" target="SYSTEM_OUT">
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
</Console>
</Appenders>
<Loggers>
<Root level="INFO">
<AppenderRef ref="Console"/>
</Root>
<Logger name="dev.usbharu.owl.broker.service.QueuedTaskAssignerImpl" level="TRACE"/>
<Logger name="org.mongodb.driver.cluster" level="WARN"/>
<Logger name="org.apache.tomcat.util.net.NioEndpoint" level="INFO"/>
</Loggers>
</Configuration>

Some files were not shown because too many files have changed in this diff Show More