Commit Graph

202 Commits

Author SHA1 Message Date
まっちゃとーにゅ b4fc96ca5b
fix lint & add i18n 2024-03-07 05:23:22 +09:00
まっちゃとーにゅ 9ab785c48f
Merge remote-tracking branch 'misskey-dev/develop' into io 2024-03-02 05:24:04 +09:00
Yuriha 26d4c5fd94
メンションの最大数をロールごとに設定可能にする ()
* Add new role policy: maximum mentions per note

* fix

* Reviewを反映

* fix

* Add ChangeLog

* Update type definitions

* Add E2E test

* CHANGELOG に説明を追加

---------

Co-authored-by: taichan <40626578+tai-cha@users.noreply.github.com>
2024-02-29 20:48:02 +09:00
zyoshoka 16f16e6b08
fix(backend): ダイレクトなノートに対してはダイレクトでしか返信できないように ()
* fix(backend): ダイレクトなノートに対してはダイレクトでしか返信できないように

* Update CHANGELOG.md

* test(backend): `notes/create`とWebSocket関連のテストを追加
2024-02-29 20:42:02 +09:00
anatawa12 b36e6b1a77
fix: 禁止キーワードを含むノートがDelayed Queueに追加されて再処理される問題 ()
* refactor: use IdentifiableError instead of NoteCreateService.ContainsProhibitedWordsError

* fix: notes with prohibited words are reprocessed with delay

* docs(changelog): 禁止キーワードを含むノートがDelayed Queueに追加されて再処理される問題

* lint: fix lint errors

* fix: rethrowするべきなのにrethrowし忘れていたのを修正
2024-02-22 00:59:59 +09:00
まっちゃとーにゅ 9835048a95
spec(backend): 一部のエンドポイントにログを追加 (MisskeyIO#457) 2024-02-16 22:17:06 +09:00
tamaina c1514ce91d (re) update SPDX-FileCopyrightText
Fix  
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
まっちゃとーにゅ e756272c02
Merge remote-tracking branch 'misskey-dev/develop' into io 2024-02-13 02:27:48 +09:00
syuilo 9b5aeb76d8 update SPDX-FileCopyrightText 2024-02-12 11:37:45 +09:00
まっちゃとーにゅ 43ef9ca4e2
spec(backend/notes/create): ネットワーク不安定・高負荷時ノートが重複して投稿される問題を修正 (MisskeyIO#432) 2024-02-11 04:02:34 +09:00
まっちゃとーにゅ 8f57849d91
Merge remote-tracking branch 'misskey-dev/develop' into io 2024-02-09 12:14:38 +09:00
おさむのひと 614c9a0fc6
fix: 特定文字列を含むノートを投稿できないようにする管理画面用設定項目を追加 ()
* fix: 特定文字列を含むノートを投稿できないようにする管理画面用設定項目を追加

* Serviceでチェックするように変更
2024-02-09 10:07:18 +09:00
まっちゃとーにゅ eda03537ca
Merge remote-tracking branch 'misskey-dev/develop' into io 2024-02-09 03:17:42 +09:00
かっこかり 0f7918c51b
refactor(backend): exist -> exists ()
* refactor(backend): exist -> exists

* fix
2024-02-08 16:04:41 +09:00
まっちゃとーにゅ 1e093f3dac
fix(backend/notes/mentions): @mentionされていないノートがあなた宛てに載ってしまう問題を修正 (MisskeyIO#388)
通常のspecified投稿の場合、visibleUserIdsはmentionsに含まれるので、このクエリーでvisibleUserIdsを参照する必要はない
2024-01-27 01:02:36 +09:00
まっちゃとーにゅ fd0601bde4
fix(timeline): `withReplies`と`withFiles`を両方設定できない問題を修正 (MisskeyIO#379)
`withFiles`の方が優先されるように
2024-01-24 04:32:24 +09:00
YS d92aaf81c4
refactor: noteテーブルのインデックス整理と配列カラムへのクエリでインデックスを使うように ()
* Optimize note model index

* enhance(backend): ANY()をやめる (MisskeyIO#239)

* add small e2e test drive endpoint

---------

Co-authored-by: まっちゃとーにゅ <17376330+u1-liquid@users.noreply.github.com>
2024-01-15 08:19:27 +09:00
まっちゃとーにゅ 1b509cb955
Merge remote-tracking branch 'misskey-dev/develop' into io 2024-01-13 23:48:15 +09:00
zyoshoka d792f4f348
fix(backend): 虚無ノートを投稿できる問題の修正と `api.json` の OpenAPI Specification 3.1.0 への対応 ()
* 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 a9ca55343d.

* 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 865458989f.

* fix(misskey-js): `openapi-parser`で`validate`のかわりに`parse`を用いるように

* Update CHANGELOG.md
2024-01-13 16:54:25 +09:00
riku6460 018ff4cbda
Merge tag '2023.12.1' into merge-upstream 2023-12-28 03:58:07 +09: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で型を明示するように ()
* refactor(frontend): Reactivityで型を明示するように

* fix: プロパティの参照が誤っているのを修正

* fix: 初期化の値を空配列に書き換えていた部分をnullに置き換え
2023-12-26 14:19:35 +09:00
riku6460 e77ddfce91
Merge tag '2023.12.0-beta.3' into merge-upstream 2023-12-10 10:29:33 +09:00
anatawa12 bb38e62ae6
chore: 自分へのリプライのみ走査するように () 2023-12-04 17:56:48 +09:00
anatawa12 18109fcef7
Filter User / Instance Mutes in FanoutTimelineEndpointService ()
* fix: unnecessary logging in FanoutTimelineEndpointService

* chore: TimelineOptions

* chore: add FanoutTimelineName type

* chore: forbid specifying both withReplies and withFiles since it's not implemented correctly

* chore: filter mutes, replies, renotes, files in FanoutTimelineEndpointService

* revert unintended changes

* use isReply in NoteCreateService

* fix: excludePureRenotes is not implemented

* fix: replies to me is excluded from local timeline

* chore(frontend): forbid enabling both withReplies and withFiles

* docs(changelog): インスタンスミュートが効かない問題の修正について言及
2023-12-04 14:38:21 +09:00
まっちゃとーにゅ 3097bce214
enhance(backend): 検索・ハイライト機能でミュート・ブロックが適用されるように (MisskeyIO#271) 2023-12-04 02:54:50 +09:00
おさむのひと 55c8ec80ed
fix (backend): 「みつける」のなかにミュートしたユーザが現れてしまう問題を修正 ()
* fix (backend): 「みつける」のなかにミュートしたユーザが現れてしまう問題を修正

* fix
2023-12-03 20:46:19 +09:00
おさむのひと c68d87538a
リストタイムラインでミュートが貫通してしまう問題に対処 ()
* ユーザリストTL系の各種動作を修正・統一

* fix

* fix CHANGELOG.md

* テスト追加
2023-12-03 10:19:37 +09:00
おさむのひと 92029ac325
fix: ()
* meを渡し忘れている

* fix CHANGELOG.md

* Revert "fix CHANGELOG.md"

This reverts commit aaee4e9b8a.
2023-12-02 20:11:31 +09:00
anatawa12 a631b976c9
Refine fanout timeline ()
* chore(endpoints/hybrid-timeline): don't pack inside getFromDb

* chore(endpoints/hybrid-timeline): Redisから取得する部分のうちSTLに依存しなそうなところを別のServiceに切り出し

* chore(endpoints/local-timeline): FanoutTimelineEndpointServiceで再実装

* chore(endpoints/channels/timeline): FanoutTimelineEndpointServiceで再実装

* chore(endpoints/timeline): FanoutTimelineEndpointServiceで再実装

* chore(endpoints/user-list-timeline): FanoutTimelineEndpointServiceで再実装

* chore(endpoints/users/notes): FanoutTimelineEndpointServiceで再実装

* chore: add useDbFallback to FanoutTimelineEndpointService.timeline and always true for channel / user note list

* style: fix lint error

* chore: split logic to multiple functions

* chore: implement redis fallback

* chore: 成功率を上げる

* fix: db fallback not working

* feat: allowPartial

* chore(frontend): set allowPartial

* chore(backend): remove fallbackIfEmpty

HTL will never be purged so it's no longer required

* fix: missing allowPartial in channel timeline

* fix: type of timelineConfig in hybrid-timeline

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-12-02 18:25:07 +09:00
anatawa12 b6b838416d
chore: remove unimplemented excludeNsfw () 2023-12-02 12:05:53 +09:00
anatawa12 d32631d159
fix: query error in notes/featured () 2023-11-26 12:54:23 +09:00
zyoshoka 7a494b2aa7
fix(backend): rename FunoutTimelineService to FanoutTimelineService () 2023-11-26 10:02:22 +09:00
まっちゃとーにゅ f28be07f12
Merge remote-tracking branch 'misskey-dev/develop' into io 2023-11-25 04:13:06 +09:00
riku6460 578cf343f0
notes/featured で結果がなかった場合にエラーになる可能性がある問題を修正 (MisskeyIO#263)
986623dbdc
2023-11-25 00:22:12 +09:00
woxtu f7bdf5a2c0
Replace deprecated `Repository.findOneById()` () 2023-11-24 09:48:36 +09:00
まっちゃとーにゅ 0c0c8f5144
fix(backend/channel): チャンネルへのノートがリストのFTTに保存されない問題を修正、個人ハイライトに反映されるように (MisskeyIO#245) 2023-11-22 01:10:48 +09:00
まっちゃとーにゅ 24d2f2aa3b
enhance(backend): ANY()をやめる (MisskeyIO#239) 2023-11-20 13:15:09 +09:00
riku6460 455c7eb653
Merge tag '2023.11.1' into merge-upstream 2023-11-17 20:19:02 +09:00
おさむのひと 1eb769dbe8
LTLに特定条件下でチャンネル投稿が混ざり込む現象の修正 ()
* LTLにチャンネル投稿を含まないように修正

* fix CHANGELOG.md

---------

Co-authored-by: osamu <46447427+sam-osamu@users.noreply.github.com>
2023-11-16 16:02:46 +09:00
syuilo 9d78a1a8b3 enhance(backend): make ftt db fallback configurable 2023-11-16 10:20:57 +09:00
zyoshoka aa6d0d4359
fix(backend): 非公開の投稿に対して返信できないように ()
* fix(backend): 非公開の投稿に対して返信できないように

* Update CHANGELOG.md

* fix: test
2023-11-15 11:10:45 +09:00
riku6460 2bc887a6c5
Merge tag '2023.11.0' into merge-upstream 2023-11-09 16:10:53 +09:00
ozelot 1e737dbb94
fix(backend): GTLの「リノートを表示」オプションが機能しないのを修正 ()
* fix(backend): GTLの「リノートを表示」オプションが機能しないのを修正 ()

* docs: Update changelog

* Apply suggestions from code review

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-11-04 18:45:59 +09:00
おさむのひと 39a3f4ae98
feat: チャンネル内→チャンネル外へのリノート制限機能追加 ()
* チャンネル内→チャンネル外へのリノート制限機能追加

* fix CHANGELOG.md

* コメント対応(canRenoteSwitch→allowRenoteToExternal)

* コメント対応(別チャンネルへのリノート対策)

* コメント対応(canRenote->allowRenoteToExternal)

* fix comment

* Update misskey-js.api.md

* ✌️

---------

Co-authored-by: osamu <46447427+sam-osamu@users.noreply.github.com>
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-11-03 17:34:23 +09:00
syuilo 0efacdfcf0 fix cw test 2023-11-03 13:26:48 +09:00
syuilo 82526ad4f3 CWを使用する場合、注釈を空にすることを許可しない
Resolve 
2023-11-03 08:17:35 +09:00
anatawa12 7015cc937b
fix(backend): We can renote pure renote ()
* chore: make pure renote detection an function

* fix: we can renote pure renote

* docs(changelog): リノートをリノートできるのを修正

* fix: remaining debug log

* chore: move isPureRenote to misc

* chore: make isPureRenote type guard

* chore: use isPureRenote in other places

* fix CHANGELOG

* style: fix lint

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-10-30 13:48:22 +09:00
おさむのひと 2de4d3329d
Fix: フォローしたユーザが、自分のフォローしていないチャンネルにノートを投稿した時、そのノートがHTLで見えてしまう ()
*  の問題に対処
「ユーザー・チャンネルともにフォローあり」のときの絞り込みに不備があり、フォローしているユーザの投稿であればチャンネルのフォロー関係なく通過するようになってしまっていた

* fix CHANGELOG.md

---------

Co-authored-by: osamu <46447427+sam-osamu@users.noreply.github.com>
2023-10-30 08:19:27 +09:00