Hazelnoot
83f2d93d30
increase rate limit on federation/update-remote-user
2025-02-01 18:53:32 -05:00
Hazelnoot
e3b826db5a
add rate limits to all public endpoints
2024-11-22 15:19:24 -05:00
Hazel K
37fd454f70
factor out shared code
2024-11-02 17:39:16 -04:00
Hazel K
3a72bf453a
respect following privacy settings
2024-11-02 17:39:16 -04:00
Hazel K
65d81a4ae2
Revert "fix incorrect populated object in followers endpoint"
...
This reverts commit 7b9473bf4c0b55facede0e1d1e33297d14184110.
2024-11-02 17:39:16 -04:00
Hazel K
8f0df1f01c
check for blocks in following / followers endpoints
2024-11-02 17:39:16 -04:00
Hazel K
c566fa1f36
require auth for followers & following endpoints
2024-11-02 17:39:16 -04:00
PrivateGER
46e53e294e
Parameterize followee as well
2024-10-07 16:47:15 +02:00
PrivateGER
1c3495ef59
Make including followers in response a parameter
2024-10-07 16:23:24 +02:00
PrivateGER
a292e46f84
Pack other side of relation into response as well
2024-10-07 11:56:18 +02:00
Hazel K
858ba18876
fix: pass current user into InstanceEntityService.packMany
2024-08-01 08:24:50 -04:00
Porlam Nicla
c39de769ca
配信停止したインスタンス一覧が見れなくなる問題を修正 ( #13945 )
...
* 配信停止したインスタンス一覧が見れなくなる問題を修正
* Update CHANGELOG.md
2024-06-07 22:11:13 +01:00
Marie
15d2319011
merge: upstream
2024-02-23 13:42:52 +01:00
syuilo
26c8b53f70
enhance: サーバーごとにモデレーションノートを残せるように
2024-02-22 20:59:52 +09:00
Marie
3912436f4f
merge: hide blocked&c instances when not logged in - fixes #422 ( !430 )
...
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/430
Closes #422
Approved-by: Marie <marie@kaifa.ch>
Approved-by: Amelia Yukii <amelia.yukii@shourai.de>
2024-02-19 19:09:11 +00:00
dakkar
bf82942245
hide blocked&c instances when not logged in - fixes 422
2024-02-19 14:53:24 +00:00
Marie
10bfc61670
merge: upstream
2024-02-19 10:47:42 +01:00
tamaina
c1514ce91d
(re) update SPDX-FileCopyrightText
...
Fix #13290
2024-02-13 15:59:27 +00:00
tamaina
311c2172d7
Revert "update SPDX-FileCopyrightText"
...
This reverts commit 9b5aeb76d8
.
2024-02-13 15:50:11 +00:00
syuilo
9b5aeb76d8
update SPDX-FileCopyrightText
2024-02-12 11:37:45 +09:00
Marie
11628e4b6a
merge: upstream
2024-02-03 20:19:44 +01:00
zyoshoka
2db5b61616
refactor(backend): User関連のスキーマ/型の指定を強くする ( #12808 )
...
* refactor(backend): User関連のスキーマ/型の指定を強くする
* refactor(backend): `pack()`の引数にスキーマを指定するように
* chore: fix ci
* fix: 変更漏れ
* fix ci
---------
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2024-01-31 15:45:35 +09:00
Marie
4c1f6be735
merge: upstream
2024-01-15 12:07:35 +01:00
zyoshoka
d792f4f348
fix(backend): 虚無ノートを投稿できる問題の修正と api.json
の OpenAPI Specification 3.1.0 への対応 ( #12969 )
...
* fix(backend): `text: null`だけのノートは投稿できないように
* add test
* Update CHANGELOG.md
* chore: bump OpenAPI Specification from 3.0.0 to 3.1.0
* chore: テストがすでにコメントで記述されていたのでそっちを使うことにする
* fix test
* fix(backend): prohibit posting whitespace-only notes
* Update CHANGELOG.md
* fix(backend): `renoteId`または`fileIds`(`mediaIds`)または`poll`が`null`でない場合に、`text が空白文字のみで構成されたリクエストになることを許可して、結果は`text: null`を返すように
* test(backend): 引用renoteで空白文字のみで構成されたtextにするとレスポンスが`text: null`になることをチェックするテストを追加
* fix(frontend): `text`が`null`であって`renoteId`と`replyId`が`null`でないようなノートは引用リノートとして表示するように
* fix(misskey-js): OpenAPI 3.1に対応
* fix(misskey-js): 型生成をOpenAPI Specification 3.1.0に対応
* fix(ci): `validate-api.json`をOpenAPI Specification 3.1.0に対応
* fix(ci): スキーマ書き換えの際のミスを修正
* Revert "fix(frontend): `text`が`null`であって`renoteId`と`replyId`が`null`でないようなノートは引用リノートとして表示するように"
This reverts commit a9ca55343df6ea1679599acbc4801f78aa3a242b.
* fix(misskey-js): `build-misskey-js-with-types`時は`api.json`のGETをスキップするように
* Revert "fix(misskey-js): `build-misskey-js-with-types`時は`api.json`のGETをスキップするように"
This reverts commit 865458989f9ddacc38d1bb3743a41ea828dbf324.
* fix(misskey-js): `openapi-parser`で`validate`のかわりに`parse`を用いるように
* Update CHANGELOG.md
2024-01-13 16:54:25 +09:00
Marie
d412879560
fix: bubble state not working on federation page
2024-01-02 20:43:11 +01:00
Marie
a1a57889fc
upd: add bubble to instance federation page as state
...
Closes #296
2024-01-02 13:35:03 +01:00
Chocolate Pie
82822e29d9
Merge pull request from GHSA-7pxq-6xx9-xpgm
...
* fix: fix improper authorization when accessing with third-party application
* refactor: refactor type definitions
* fix: get rid of unnecessary access limitation
* enhance: サードパーティアプリケーションがWebsocket APIを使えるように
* fix: add missing parentheses
* Revert "fix(backend): add missing kind definition for admin endpoints to improve security"
This reverts commit 5150053275
.
* frontend: 翻訳の抜けを訂正, read:adminとwrite:adminはアクセス発行トークンのデフォルトでは非表示にする
* enhance(test): misskey-ghsa-7pxq-6xx9-xpgmに関するテストを追加
* enhance(test): Websocket APIに対するテストも追加
* enhance(refactor): `@/misc/api-permissions.ts`を`misskey-js/permissions`に統合
* fix(frontend): アクセストークン発行UIで全ての権限を有効にした際、管理者用APIへのアクセスも許可してしまう問題を修正
* enhance(backend): Websocketの接続に最低限必要な権限を変更
* fix(backend): `/api/admin/meta`をサードパーティアプリケーションからはアクセスできないように
* fix(backend): エンドポイントにアクセスするために必要な権限を変更
* fix(frontend/locale): Add missing type declaration
* chore: update `misskey-js/src/autogen`
---------
Co-authored-by: tamaina <tamaina@hotmail.co.jp>
2023-12-28 09:45:54 +01:00
zyoshoka
8daff4a998
refactor(frontend): Reactivityで型を明示するように ( #12791 )
...
* refactor(frontend): Reactivityで型を明示するように
* fix: プロパティの参照が誤っているのを修正
* fix: 初期化の値を空配列に書き換えていた部分をnullに置き換え
2023-12-28 09:45:15 +01:00
Chocolate Pie
c96bc36fed
Merge pull request from GHSA-7pxq-6xx9-xpgm
...
* fix: fix improper authorization when accessing with third-party application
* refactor: refactor type definitions
* fix: get rid of unnecessary access limitation
* enhance: サードパーティアプリケーションがWebsocket APIを使えるように
* fix: add missing parentheses
* Revert "fix(backend): add missing kind definition for admin endpoints to improve security"
This reverts commit 5150053275
.
* frontend: 翻訳の抜けを訂正, read:adminとwrite:adminはアクセス発行トークンのデフォルトでは非表示にする
* enhance(test): misskey-ghsa-7pxq-6xx9-xpgmに関するテストを追加
* enhance(test): Websocket APIに対するテストも追加
* enhance(refactor): `@/misc/api-permissions.ts`を`misskey-js/permissions`に統合
* fix(frontend): アクセストークン発行UIで全ての権限を有効にした際、管理者用APIへのアクセスも許可してしまう問題を修正
* enhance(backend): Websocketの接続に最低限必要な権限を変更
* fix(backend): `/api/admin/meta`をサードパーティアプリケーションからはアクセスできないように
* fix(backend): エンドポイントにアクセスするために必要な権限を変更
* fix(frontend/locale): Add missing type declaration
* chore: update `misskey-js/src/autogen`
---------
Co-authored-by: tamaina <tamaina@hotmail.co.jp>
2023-12-27 15:08:59 +09:00
zyoshoka
75034d9240
refactor(frontend): Reactivityで型を明示するように ( #12791 )
...
* refactor(frontend): Reactivityで型を明示するように
* fix: プロパティの参照が誤っているのを修正
* fix: 初期化の値を空配列に書き換えていた部分をnullに置き換え
2023-12-26 14:19:35 +09:00
Marie
5db583a3eb
merge: upstream
2023-12-23 02:09:23 +01:00
GrapeApple0
79ca93cefb
enhance: api.jsonのレスポンスの内容を実際の内容に合わせる ( #12723 )
...
* Create packedAdSchema
* admin/emoji/add
* admin/get-user-ips
* admin/roles/users
* admin/get-index-stats
* admin/accounts/find-by-email
* fix type of admin/ad/list
* federation/stats
* endpoints
* get-online-users-count
* i/2fa/register-key
* i/2fa/key-done
* i/2fa/register
* i/apps
* i/authorized-apps
* i/registry/get-all
* i/registry/get
* i/registry/get-detail
* i/registry/key-with-type
* i/registry/scopes-with-domain
* i/update-email
* i/move
* i/webhooks/create
* fix miss type
* i/webhooks/show
* i/webhooks/list
* flash/create
* roles/users
* server-info
* test
* users/lists/get-memberships
* users/achievements
* fetch-rss
* fetch-external-resources
2023-12-21 16:57:05 +09:00
Mar0xy
93869a5f34
add: mark instance as NSFW
...
Closes transfem-org/Sharkey#197
2023-12-05 22:20:52 +01:00
おさむのひと
336416261a
バックエンドが生成するapi.jsonからmisskey-jsの型を作成する ( #12434 )
...
* ひとまず生成できるところまで
* ファイル構成整理
* 生成コマンド整理
* misskey-jsへの組み込み
* fix generator.ts
* wip
* fix generator.ts
* fix package.json
* 生成ロジックの調整
* 型レベルでのswitch-case機構をmisskey-jsからfrontendに持ち込めるようにした
* 型チェック用のtsconfig.jsonを作成
* 他のエンドポイントを呼ぶ関数にも適用
* 未使用エンティティなどを削除
* misskey-js側で手動定義されていた型を自動生成された型に移行(ただしapi.jsonがvalidでなくなってしまったので後で修正する)
* messagingは廃止されている(テストのビルドエラー解消)
* validなapi.jsonを出力できるように修正
* 修正漏れ対応
* Ajvに怒られて起動できなかったところを修正
* fix ci(途中)
* パラメータenumをやめる
* add command
* add api.json
* 都度自動生成をやめる
* 一気通貫スクリプト修正
* fix ci
* 生成ロジック修正
* フロントの型チェックは結局やらなかったので戻しておく
* fix pnpm-lock.yaml
* add README.md
---------
Co-authored-by: osamu <46447427+sam-osamu@users.noreply.github.com>
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-12-02 21:00:05 +09:00
おさむのひと
c284d41b5b
swagger-cli validateがvalidとなるapi.jsonを作れるようにする ( #12403 )
...
* api.jsonがswagger-cli validateでエラーにならないように生成ロジックを修正
* フィールドの消し方に不備があったので変更
* バックエンドを起動しなくてもapi.jsonを作れるようにした
* deepCopyしてからレスポンス部分を作るようにした
* fix CHANGELOG.md
* securitySchemesの定義を復活&ApiCallServiceの実装的にベアラトークンなのでその形で
* bodyが無い(空オブジェクト)のときはrequestBodyを描画しないようにする
* allowGetがtrueな項目はget用の記載も作成
---------
Co-authored-by: osamu <46447427+sam-osamu@users.noreply.github.com>
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-11-22 17:08:56 +09:00
まっちゃてぃー
5efd01ba70
feat: サーバーサイレンス機能を追加 ( #12031 )
...
* feat : サーバーサイレンスを追加
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update locale
* Update instance-info.vue
* update misskey-js.api.md
* lint fix
* migration fix
* 既存のものを使うように
* fix
* 色々直した
* Update packages/frontend/src/pages/admin/instance-block.vue
* Update packages/frontend/src/pages/admin/instance-block.vue
* Update packages/frontend/src/components/MkInstanceCardMini.vue
* Update packages/backend/src/core/entities/InstanceEntityService.ts
* Update packages/backend/src/core/entities/InstanceEntityService.ts
* Update packages/backend/src/core/entities/InstanceEntityService.ts
* Update packages/backend/src/core/UserFollowingService.ts
* Update packages/backend/src/core/UserFollowingService.ts
* fix: サイレンスされてるサーバーからの投稿は全部ホームにする
* fix: undefinedでfalseを返すようにした
---------
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-10-16 20:11:27 +09:00
syuilo
6cf466e5d1
update deps ( #11820 )
...
* update deps
* fix
* wip
* wip
* wip
* Update docker-compose.yml.example
* Delete reviewer-lottery.yml
* Update RepositoryModule.ts
* wip
* wip
* clean up
* update deps
* wip
* wip
2023-09-15 14:28:29 +09:00
woxtu
dd1783f984
chore(backend): Resolve import/no-default-export
rule violations ( #11732 )
...
* Disable `import/no-default-export` properly
* Disable `import/no-default-export`
2023-08-17 21:20:58 +09:00
Shun Sakai
c2370a1be6
chore: 著作権とライセンスについての情報を各ファイルに追加する ( #11348 )
...
* chore: Add the SPDX information to each file
Add copyright and licensing information as defined in version 3.0 of
the REUSE Specification.
* tweak format
---------
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-07-27 14:31:52 +09:00
tamaina
c1a19ff900
fix(backend): Use OFFSET instead of SKIP when using LIMIT ( #11379 )
...
* fix(backend): Use OFFSET instead of SKIP when using LIMIT
* update CHANGELOG.md
2023-07-25 19:21:50 +09:00
syuilo
081a14d6f3
perf(backend): use limit() instead of take()
2023-07-08 16:53:07 +09:00
syuilo
6fe13f1a63
lint fix
2023-03-07 20:17:19 +09:00
danominium
4f0bb70118
fix(backend): ブロックホストがない場合はINクエリを生成しない。 ( #10258 )
...
空のINクエリはシンタックスエラーとなるため。
2023-03-07 20:09:20 +09:00
tamaina
e8c5307f66
perf(client): ウェルカムページを最適化 ( #9960 )
...
* perf(client): ウェルカムページの最適化
* remove max
2023-02-17 12:38:30 +09:00
Kagami Sascha Rosylight
63df2c851e
refactor: remove all unused imports ( #9951 )
...
Co-authored-by: tamaina <tamaina@hotmail.co.jp>
2023-02-16 23:09:41 +09:00
syuilo
30fced38c4
refactor: rename instance.caughtAt to instance.firstRetrievedAt
2023-01-16 05:02:38 +09:00
syuilo
91ced90fb2
fix imports
2023-01-09 08:58:16 +09:00
MeiMei
10e526ba56
fix: Escape SQL LIKE ( #9493 )
...
* SQL LIKE escape
* CHANGELOG
2023-01-08 20:32:17 +09:00
syuilo
6f9aa94e3a
fix instance sort
2023-01-05 16:38:12 +09:00
syuilo
4cc71d2443
✌️
2023-01-03 09:32:36 +09:00