dakkar
c05cc63e24
look inside url
when checking activity origin - #512
...
The previous assertion that:
> if it's a complicated thing and the `activity.id` doesn't match, I
> think we're fine rejecting the activity
was wrong: at least peertube sends activities that have `url` as an
array of objects.
Notice that this does *not*, in fact, fix #512 : the peertube activity
does not contain its short URL (`https://example.com/w/someid `), so
there's no way to confirm that it is the activity we requested.
2024-05-18 16:48:10 +01:00
dakkar
af548d05ca
merge upstream for 2024.2.1
2024-03-02 16:36:49 +00:00
Marie
15d2319011
merge: upstream
2024-02-23 13:42:52 +01:00
okayurisotto
750d262604
refactor(backend): ReactionService.prototype.convertLegacyReactions
( #13375 )
...
* add unit tests
* cleanup unnecessary type assertions
* `convertedReaction`変数の定義と変換表に対する存在確認処理の整理
* `count`変数の定義とループ処理での`Object.entries()`の活用
* 条件式の整理
* `Array.prototype.reduce`を使うように
* `Array.prototype.reduce`を使うように
* 配列操作を1つのメソッドチェーンに整理
これまでの実装では、`decodeReaction`の返り値が同一になる異なる入力値が同時に複数個存在した場合、後ろのもので上書きされてしまっていたはず。
これからの実装では、後ろのものは前のものに加算される。
(実際にこの挙動の変更が問題になるシチュエーションはまずないはず。)
* add unit test
* ドキュメントコメントの追加と型定義の調整
2024-02-21 14:31:50 +09:00
Marie
10bfc61670
merge: upstream
2024-02-19 10:47:42 +01:00
tamaina
0a8ffd9cfa
Merge pull request from GHSA-qqrm-9grj-6v32
...
* maybe ok
* fix
* test wip
* ✌️
* fix
* if (res.ok)
* validateContentTypeSetAsJsonLD
* 条件を考慮し直す
* その他の+json接尾辞が付いているメディアタイプも受け容れる
* https://github.com/misskey-dev/misskey-ghsa-qqrm-9grj-6v32/pull/1#discussion_r1490999009
* add `; profile="https://www.w3.org/ns/activitystreams "`
* application/ld+json;
2024-02-17 13:09:08 +00:00
tamaina
9a70ce8f5e
Merge pull request from GHSA-qqrm-9grj-6v32
...
* maybe ok
* fix
* test wip
* ✌️
* fix
* if (res.ok)
* validateContentTypeSetAsJsonLD
* 条件を考慮し直す
* その他の+json接尾辞が付いているメディアタイプも受け容れる
* https://github.com/misskey-dev/misskey-ghsa-qqrm-9grj-6v32/pull/1#discussion_r1490999009
* add `; profile="https://www.w3.org/ns/activitystreams "`
* application/ld+json;
2024-02-17 12:41:19 +09: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
tamaina
32c5c43b6d
enhance: 禁止ワードはリモートノートも対象に ( #13280 )
...
Resolve #13279
2024-02-13 04:54:01 +09:00
syuilo
9b5aeb76d8
update SPDX-FileCopyrightText
2024-02-12 11:37:45 +09:00
Marie
af5ebdfced
merge: more upstream changes
2024-02-07 21:52:27 +01:00
MeiMei
e89d760240
Enhance: 連合向けのノート配信を軽量化 ( #13192 )
...
* AP HTML表現をシンプルに
* a
* CHANGELOG
* リンク
2024-02-07 19:57:59 +09:00
Marie
f091b84c6e
chore: change sfm registry and name
2024-02-03 15:01:09 +01:00
Marie
7552cea69a
merge: upstream
2024-01-09 02:57:57 +01:00
おさむのひと
35ec41fc1e
enhance(backend): テストの高速化 ( #12939 )
...
* enhance(backend): テストの高速化
* add ls
* 自動的にマージされるようなので不要
* 起動方法を揃える
* fix test
2024-01-08 17:43:52 +09:00
Marie
5db583a3eb
merge: upstream
2023-12-23 02:09:23 +01:00
おさむのひと
433d46e57f
fix(backend): テストが死んでいるのを修正 ( #12738 )
...
* fix test
* fix test
* fix test
* fix test
* fix test
2023-12-22 09:06:13 +09:00
syuilo
15b0d2aff2
enhance: ロールにアサインされたときの通知 ( #12607 )
...
* wip
* Update misskey-js.api.md
* Update CHANGELOG.md
* Update RoleService.ts
* Update locales/ja-JP.yml
Co-authored-by: かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>
* Update UserListService.ts
* Update misskey-js.api.md
* fix (#12724 )
---------
Co-authored-by: かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>
Co-authored-by: おさむのひと <46447427+samunohito@users.noreply.github.com>
2023-12-21 10:39:11 +09:00
Marie
c92c2d065f
upd: replace mfm with sfm
2023-12-18 03:03:05 +01:00
Mar0xy
42bf8e5e76
merge: upstream
2023-11-22 23:40:27 +01:00
syuilo
9d78a1a8b3
enhance(backend): make ftt db fallback configurable
2023-11-16 10:20:57 +09:00
ShittyKopper
c1f9670439
fix: FileInfoService unit test
2023-11-05 16:28:55 +03:00
ShittyKopper
2eda00d9b9
upd: rip out AiService
2023-11-05 11:55:19 +03:00
Mar0xy
4dd23a3793
merge: upstream
2023-10-31 19:33:24 +01:00
syuilo
e6c54de814
enhance(backend): RedisへのTLのキャッシュをオフにできるように
2023-10-23 15:17:25 +09:00
Mar0xy
68886b9ab5
merge: upstream performance changes & instance silencing
2023-10-16 23:38:21 +02:00
syuilo
6a321ba340
fix test
2023-10-16 14:35:44 +09:00
syuilo
34d1b463a4
fix tests
2023-10-16 12:58:17 +09:00
syuilo
1fa1d31696
perf(backend): createdAtをidから取得するように & 無駄なDateインスタンスの生成を避けるように
2023-10-16 10:45:22 +09:00
Mar0xy
b002848b20
upd: increase default cache max values
2023-10-14 02:19:28 +02:00
syuilo
2859cbab91
perf(backend): WebSocket接続が多い場合のパフォーマンスを向上
...
https: //github.com/MisskeyIO/misskey/pull/176
Co-Authored-By: KOBA789 <kobahide789@gmail.com>
2023-10-08 08:10:28 +09:00
syuilo
ee70f05a86
fix test
2023-10-04 15:29:09 +09:00
syuilo
a997b7bdcc
fix test
2023-10-04 14:45:46 +09:00
syuilo
9e4d3ebe5f
enhance(backend): refine moderation log ( #10939 )
...
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* Update DriveService.ts
2023-09-23 18:28:16 +09:00
syuilo
053da10e94
refactor(backend): update directory structure for models
2023-09-20 11:33:36 +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
syuilo
ca00a08e6e
feat: introduce aidx and make it default
...
Co-Authored-By: MeiMei <30769358+mei23@users.noreply.github.com>
2023-09-06 18:33:51 +09:00
syuilo
1beaac8e2d
fixes
2023-09-05 17:02:14 +09:00
syuilo
1f7a81aae7
update deps ( #11764 )
...
* update deps
* node16
* wip
* wip
* wip
* Update test-utils.ts
* wip
* Update tsconfig.json
* wip
* Update package.json
* wip
* Update following.vue
* Update followers.vue
* Update index.vue
* Update share.vue
* Update MkUserPopup.vue
* Update MkPostForm.vue
* wip
* Update MkTokenGenerateWindow.vue
* Update MkPagination.vue
* refactor
* update deps
* update deps
* Update sw.ts
* wip
* wip
* wip
* Update FetchInstanceMetadataService.ts
* Update FetchInstanceMetadataService.ts
* update node
* update deps
* 🎨
2023-09-04 13:33:38 +09:00
syuilo
9487856495
feat: refine announcement ( #11497 )
...
* wip
* Update read-announcement.ts
* wip
* wip
* wip
* Update index.d.ts
* wip
* Create 1691649257651-refine-announcement.js
* wip
* wip
* wip
* wip
* wip
* wip
* Update announcements.vue
* wip
* wip
* Update announcements.vue
* wip
* Update announcements.vue
* wip
* Update misskey-js.api.md
* Update users.ts
* Create MkAnnouncementDialog.stories.impl.ts
* wip
* wip
* Create AnnouncementService.ts
2023-08-13 20:12:29 +09:00
Kagami Sascha Rosylight
ec229dbd3b
fix(backend/ApNoteService): try retrieving again when failed by duplication ( #11472 )
...
* fix(backend/ApNoteService): try retrieving again when failed by duplication
* Update CHANGELOG.md
---------
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-08-08 13:26:03 +09:00
tamaina
f6a3f6f5f1
enhance(backend): Improve behavior of correctFilename ( #11484 )
...
* enhance(backend): Improve behavior of correctFilename
* ✌️
* 未知のファイル形式かつ拡張子がある場合は何もしない
* ✌️
* .ext
---------
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-08-08 13:24:30 +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
Kagami Sascha Rosylight
d5f30ecb86
feat(backend): allow disabling cache for sensitive files ( #11245 )
...
* feat(backend): allow disabling cache for sensitive files
* Update CHANGELOG.md
* fix storybook
* Update locales/ja-JP.yml
---------
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-07-15 20:12:20 +09:00
Kagami Sascha Rosylight
5059d4d7e1
refactor(backend): skip fetching notes when the data is same-origin ( #11200 )
...
* refactor(backend): skip fetching notes when the data is same-origin
* Update CHANGELOG.md
* sentFrom
2023-07-09 08:59:44 +09:00
Yuriha
d2764944cf
Add unit test for FetchInstanceMetadataService ( #11173 )
2023-07-08 19:34:19 +09:00
okayurisotto
d84796588c
cleanup: trim trailing whitespace ( #11136 )
...
* cleanup: trim trailing whitespace
* update(`.editorconfig`)
---------
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-07-08 07:08:16 +09:00
Kagami Sascha Rosylight
ef354e94f2
refactor(backend): replace rndstr with secureRndstr ( #11044 )
...
* refactor(backend): replace rndstr with secureRndstr
* Update pnpm-lock.yaml
* .js
2023-06-25 11:04:33 +09:00
syuilo
7ce569424a
feat: カスタム絵文字ごとにそれをリアクションとして使えるロールを設定できるように
2023-05-18 18:45:49 +09:00