Commit Graph

1564 Commits

Author SHA1 Message Date
tamaina
9fb76ba28b enhance: Provide Twemoji SVGs from Misskey server (#2) (#7897)
* Selfhosting Twemoji

* ちっ

* うざっ

* あ

* add test

Co-authored-by: mei23 <m@m544.net>
2021-10-24 21:10:45 +09:00
syuilo
dedb37995f feat(client): メンションにユーザーのアバターを表示するように
Resolve #350
2021-10-24 21:02:50 +09:00
syuilo
1b33d50279 モデレーターをブロックできない仕様を廃止
Resolve #7898
2021-10-22 21:01:36 +09:00
syuilo
8f3467f089 データベースにログを保存するのを廃止
Close #7878
2021-10-22 20:41:15 +09:00
syuilo
faf4d2ccd1 Migrate to Chart.js v3 (#7896)
* wip

* wip

* wip

* wip

* wip

* wip

* wip

* 定期的にresync

* Update overview.vue

* wip

* wip
2021-10-22 05:36:48 +09:00
syuilo
1b980233b7 improve usability 2021-10-21 20:12:24 +09:00
tamaina
278ca4244d refactor: publishHogeStreamとStreamのEventEmitterに型定義する (#7769)
* wip

* wip

* wip

* ✌️

* add main stream

* packedNotificationSchemaを更新

* read:gallery, write:gallery, read:gallery-likes, write:gallery-likesに翻訳を追加

* fix

* ok

* add header, choice, invitation

* add header, choice, invitation

* test

* fix

* fix

* yatta

* remove no longer needed "as PackedUser/PackedNote"

* clean up

* add simple-schema

* fix lint

* fix lint

* wip

* wip!

* wip

* fix

* wip

* wip

* ✌️

* 送信側に型エラーがないことを3回確認した

* ✌️

* wip

* update typescript

* define items in full Schema

* edit comment

* edit comment

* edit comment

* Update src/prelude/types.ts

Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>

* https://github.com/misskey-dev/misskey/pull/7769#discussion_r703058458

* user packとnote packの型不整合を修正

* revert https://github.com/misskey-dev/misskey/pull/7772#discussion_r706627736

* revert https://github.com/misskey-dev/misskey/pull/7772#discussion_r706627736

* user packとnote packの型不整合を修正

* add prelude/types.ts

* emoji

* signin

* game

* matching

* clean up

* ev => data

* refactor

* clean up

* add type

* antenna

* channel

* fix

* add Packed type

* add PackedRef

* fix lint

* add emoji schema

* add reversiGame

* add reversiMatching

* remove signin schema (use Signin entity)

* add schemas refs, fix Packed type

* wip PackedHoge => Packed<'Hoge'>

* add Packed type

* note-reaction

* user

* user-group

* user-list

* note

* app, messaging-message

* notification

* drive-file

* drive-folder

* following

* muting

* blocking

* hashtag

* page

* app (with modifying schema)

* import user?

* channel

* antenna

* clip

* gallery-post

* emoji

* Packed

* reversi-matching

* update stream.ts

* https://github.com/misskey-dev/misskey/pull/7769#issuecomment-917542339

* fix lint

* clean up?

* add changelog

* add changelog

* add changelog

* fix: アンテナが既読にならないのを修正

* revert fix

* https://github.com/misskey-dev/misskey/pull/7769#discussion_r711474875

* spec => payload

* edit commetn

Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
2021-10-21 01:04:10 +09:00
syuilo
e01348d620 lint 2021-10-20 01:15:14 +09:00
syuilo
aa2acfc3ea feat: ミュートとブロックのインポート
Resolve #7885
2021-10-20 01:11:13 +09:00
syuilo
3865b250b6 refactor: use insert 2021-10-20 01:02:04 +09:00
syuilo
2a75c065df Update search-by-username-and-host.ts 2021-10-20 00:53:38 +09:00
syuilo
2e1a72d030 fix(api): アプリケーション通知が取得できない問題を修正
Fix #6702
2021-10-19 20:25:47 +09:00
syuilo
ab5701e5b5 リアクション一覧の公開をオプトインに 2021-10-18 01:16:59 +09:00
syuilo
ff25b6b65a #7880 2021-10-17 18:38:38 +09:00
syuilo
a3a3822bbe enhance: ユーザー検索の精度を強化 2021-10-17 16:26:35 +09:00
syuilo
ecaa6a1ae0 feat: ユーザーのリアクション一覧を見れるように 2021-10-17 01:33:15 +09:00
syuilo
a25c7c1a8d Merge branch 'develop' of https://github.com/misskey-dev/misskey into develop 2021-10-16 17:42:21 +09:00
syuilo
71ce3ea61e feat(api): add users/groups/leave
Resolve #7775
2021-10-16 17:42:17 +09:00
MeiMei
98d17585f5 Refactor request (#7814)
* status code

* Test ap-request.ts

4397fc5e70/test/ap-request.ts

* tune
2021-10-16 17:16:24 +09:00
syuilo
3c5085b387 🎨 2021-10-14 22:40:43 +09:00
syuilo
31af6762b8 chore: ba6959b8c1 のリモート対応 2021-10-14 01:55:39 +09:00
syuilo
592cde15c3 fix(api): 管理者およびモデレーターをブロックできてしまう問題を修正 2021-10-14 01:24:54 +09:00
syuilo
395c8c36d0 refactor: use path alias 2021-10-09 12:47:40 +09:00
syuilo
aaf144368f feat: 未読の通知のみ表示する機能 2021-10-09 12:44:19 +09:00
syuilo
9551a2fb19 fix(api): (0 , ms_1.default) is not a function 2021-10-08 21:24:53 +09:00
syuilo
fb54b347a0 server: コマンドラインオプション廃止
Resolve #7863
Resolve #6337
2021-10-08 21:24:05 +09:00
syuilo
4e254a9072 enhance(api): ap系のエンドポイントをログイン必須化+レートリミット追加
他のサーバーにリクエストを送信するという性質上、攻撃の踏み台にされることがあるため
2021-10-08 14:05:07 +09:00
syuilo
327f5d335e feat: アカウント作成にメールアドレス必須にするオプション (#7856)
* feat: アカウント作成にメールアドレス必須にするオプション

* ui

* fix bug

* fix bug

* fix bug

* 🎨
2021-10-08 13:37:02 +09:00
syuilo
3c75293f3f fix(api): fix file type regex 2021-10-05 20:28:07 +09:00
Johann150
699ebc1542 fix: truncate image descriptions (#7699)
* move truncate function to separate file to reuse it

* truncate image descriptions

* show image description limit in UI

* correctly treat null

Co-authored-by: nullobsi <me@nullob.si>

* make truncate Unicode-aware

The strings that truncate returns should now be valid Unicode.

PostgreSQL also counts Unicode Code Points instead of bytes so this
should be correct.

* move truncate to internal, validate in API

Truncating could also be done in src/services/drive/add-file.ts or
src/services/drive/upload-from-url.ts but those would also affect
local images. But local images should result in a hard error if the
image comment is too long.

* avoid overwriting

Co-authored-by: nullobsi <me@nullob.si>
2021-09-30 01:44:22 +09:00
Johann150
ccb72b4672 fix inboxQueue import (#7829) 2021-09-23 22:32:16 +09:00
syuilo
dab00eb808 enhance(client): アップデートが利用可能な場合エラー表示およびダイアログ表示しないように 2021-09-22 22:45:10 +09:00
tamaina
dbdb0df0a9 refactor: PackedHoge型をPacked<'Hoge'>型に書き換える (#7792)
* packedNotificationSchemaを更新

* read:gallery, write:gallery, read:gallery-likes, write:gallery-likesに翻訳を追加

* fix

* add header, choice, invitation

* test

* fix

* yatta

* remove no longer needed "as PackedUser/PackedNote"

* clean up

* add simple-schema

* fix lint

* define items in full Schema

* revert https://github.com/misskey-dev/misskey/pull/7772#discussion_r706627736

* user packとnote packの型不整合を修正

* add prelude/types.ts

* emoji

* signin

* game

* matching

* fix

* add emoji schema

* add reversiGame

* add reversiMatching

* remove signin schema (use Signin entity)

* add Packed type

* note-reaction

* user

* user-group

* user-list

* note

* app, messaging-message

* notification

* drive-file

* drive-folder

* following

* muting

* blocking

* hashtag

* page

* app (with modifying schema)

* import user?

* channel

* antenna

* clip

* gallery-post

* emoji

* Packed

* reversi-matching

* add changelog

* add changelog

* revert fix
2021-09-22 22:35:55 +09:00
syuilo
d8e4d8eb91 feat(server): 管理者用アカウント削除API実装
動作確認済み
Resolve #7735
2021-09-22 17:34:48 +09:00
syuilo
132e662805 feat: 凍結された場合のダイアログを実装 (#7811)
* feat: 凍結された場合のダイアログを実装

* Update CHANGELOG.md

* Update basic.js

* improve error handling

* cypressなんもわからん

* Update basic.js
2021-09-19 02:23:12 +09:00
syuilo
894c806505 enhance(server): アカウントが凍結されたときのエラーを判定しやすく 2021-09-18 17:58:37 +09:00
sousuke0422
eeaff3801f fix: アンテナの既読 (#7803)
from: a89742319c
2021-09-18 13:30:28 +09:00
tamaina
4761ccd697 refactor: Expand schema (#7772)
* packedNotificationSchemaを更新

* read:gallery, write:gallery, read:gallery-likes, write:gallery-likesに翻訳を追加

* fix

* add header, choice, invitation

* test

* fix

* yatta

* remove no longer needed "as PackedUser/PackedNote"

* clean up

* add simple-schema

* fix lint

* define items in full Schema

* revert https://github.com/misskey-dev/misskey/pull/7772#discussion_r706627736

* user packとnote packの型不整合を修正
2021-09-12 01:12:23 +09:00
syuilo
5da3588323 fix(server): ノート翻訳時に公開範囲が考慮されていない問題を修正 2021-09-05 16:25:30 +09:00
MeiMei
9a5efad815 ファイルサイズのハードリミット (#7760)
* maxFileSize

* CHANGELOG
2021-09-04 20:33:14 +09:00
MeiMei
85409f4bd5 Tune download (#2)
* s2-2

* allowedPrivateNetworks

* style

* Proxyの間にあると誤解しそうなのでconfigの記述順を変更

* Fix error handler
2021-09-03 21:13:06 +09:00
syuilo
a899dabf04 Fix #7689 2021-08-24 14:39:42 +09:00
syuilo
91e4d3fcf3 fix: support DeepL pro account
Fix #7648
2021-08-24 13:19:21 +09:00
syuilo
ea97cd7c14 fix(server): use csp to imporve security 2021-08-24 13:08:20 +09:00
syuilo
c8de4d6a11 refactoring 2021-08-22 22:22:53 +09:00
syuilo
5dad771edd clean up 2021-08-21 14:47:39 +09:00
tamaina
0ed756d00d feat: Implement api sw/unregister (#7611)
* Implement api sw/unregister

* remove all mode

* add changelog

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2021-08-21 14:47:18 +09:00
syuilo
edd213e72f enhance(server): Use job queue for account delete (#7668)
* enhance(server): Use job queue for account delete

Fix #5336

* ジョブをひとつに

* remove done call

* clean up

* add User.isDeleted

* コミット忘れ

* Update 1629512953000-user-is-deleted.ts

* show dialog

* lint

* Update 1629512953000-user-is-deleted.ts
2021-08-21 12:41:56 +09:00
Johann150
70cf229d3a fix: use correct query generate function (#7657)
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2021-08-20 20:55:12 +09:00
syuilo
6216ab9372 refactor: use path alias to improve readability 2021-08-19 22:04:15 +09:00