Commit graph

162 commits

Author SHA1 Message Date
MeiMei
663445c533 Fix cast (#8257) 2022-02-06 16:01:54 +09:00
syuilo
06180d1331 fix 2022-02-06 08:39:23 +09:00
syuilo
b0da30469d imprpve active users chart 2022-02-06 06:24:06 +09:00
xianon
633cf5a943 fix: NodeInfo のユーザー数と投稿数の内容を見直す (#8255)
* NodeInfoのアクティブユーザーの取得方法を変更する

* NodeInfoの投稿数の出力内容を見直す
2022-02-06 04:29:36 +09:00
syuilo
ed86093869 fix chart clean 2022-02-06 02:16:52 +09:00
syuilo
f8fd491384 improve chart 2022-02-06 00:43:22 +09:00
syuilo
eaad6e188c Improve chart engine (#8253)
* wip

* wip

* wip

* wip

* wip

* wip

* wip

* Update core.ts

* wip

* wip

* #7361

* delete network chart

* federationChart強化 apRequestChart追加

* tweak
2022-02-06 00:13:52 +09:00
syuilo
71f817d9aa refactor 2022-02-04 11:10:53 +09:00
syuilo
34449ec0b2 use date-fns 2022-02-04 10:41:27 +09:00
syuilo
d21b28b159 refactor 2022-02-04 02:06:24 +09:00
syuilo
21cce18d36 Update yarn.lock 2022-02-04 01:58:28 +09:00
syuilo
65e14ce8cc ESM使えない 2022-02-04 01:58:21 +09:00
syuilo
114b39be42 refactor: use date-fns 2022-02-04 01:56:33 +09:00
syuilo
47ac7da77c ESMは使えない 2022-02-03 22:19:54 +09:00
syuilo
991cff26bd refactor 2022-02-03 22:01:14 +09:00
syuilo
1925dc208d refactor 2022-02-03 21:48:23 +09:00
syuilo
7868d202f8 refactor 2022-02-03 21:43:53 +09:00
syuilo
f6184239cf refactor 2022-02-03 21:38:57 +09:00
syuilo
591f53fd06 refactor 2022-02-03 21:20:25 +09:00
syuilo
5e31350552 update deps 2022-02-03 21:09:15 +09:00
syuilo
098b2a4684 refactor 2022-02-03 21:09:07 +09:00
syuilo
b0536a5810 refactor: use toISOString 2022-02-03 20:45:18 +09:00
syuilo
e446759cca refactor 2022-02-03 17:21:52 +09:00
syuilo
c491091f81 refactor 2022-02-03 17:12:51 +09:00
syuilo
dcd2a3037f refactor 2022-02-03 02:41:22 +09:00
Kainoa Kanter
f7103070e4 Twitterの埋め込みを修正しました [Fix Twitter embed] (#8193)
* Fix Twitter embed

* Update packages/backend/src/server/web/views/gallery-post.pug

Co-authored-by: まっちゃとーにゅ <17376330+u1-liquid@users.noreply.github.com>

* Update packages/backend/src/server/web/views/channel.pug

Co-authored-by: まっちゃとーにゅ <17376330+u1-liquid@users.noreply.github.com>

* Update packages/backend/src/server/web/views/base.pug

Co-authored-by: まっちゃとーにゅ <17376330+u1-liquid@users.noreply.github.com>

* Update packages/backend/src/server/web/views/base.pug

Co-authored-by: まっちゃとーにゅ <17376330+u1-liquid@users.noreply.github.com>

* Update packages/backend/src/server/web/views/clip.pug

Co-authored-by: まっちゃとーにゅ <17376330+u1-liquid@users.noreply.github.com>

* Update packages/backend/src/server/web/views/channel.pug

Co-authored-by: まっちゃとーにゅ <17376330+u1-liquid@users.noreply.github.com>

* Update packages/backend/src/server/web/views/note.pug

Co-authored-by: まっちゃとーにゅ <17376330+u1-liquid@users.noreply.github.com>

* Update packages/backend/src/server/web/views/gallery-post.pug

Co-authored-by: まっちゃとーにゅ <17376330+u1-liquid@users.noreply.github.com>

* Update packages/backend/src/server/web/views/page.pug

Co-authored-by: まっちゃとーにゅ <17376330+u1-liquid@users.noreply.github.com>

* Update packages/backend/src/server/web/views/user.pug

Co-authored-by: まっちゃとーにゅ <17376330+u1-liquid@users.noreply.github.com>

* Update packages/backend/src/server/web/views/page.pug

Co-authored-by: rinsuki <428rinsuki+git@gmail.com>

* Yay!

* Update packages/backend/src/server/web/views/base.pug

Co-authored-by: まっちゃとーにゅ <17376330+u1-liquid@users.noreply.github.com>

* Update packages/backend/src/server/web/views/base.pug

Co-authored-by: まっちゃとーにゅ <17376330+u1-liquid@users.noreply.github.com>

* Update packages/backend/src/server/web/views/base.pug

Co-authored-by: まっちゃとーにゅ <17376330+u1-liquid@users.noreply.github.com>

* Update page.pug

* Update channel.pug

* Update gallery-post.pug

* Update note.pug

* Update page.pug

* Update user.pug

Co-authored-by: まっちゃとーにゅ <17376330+u1-liquid@users.noreply.github.com>
Co-authored-by: rinsuki <428rinsuki+git@gmail.com>
2022-02-03 00:51:41 +09:00
MeiMei
fd4095b37f fix: ストリーミングからのAPIリクエストが出来ないのを修正 (#8244)
* Update call.ts

* あれ
2022-02-02 20:04:52 +09:00
MeiMei
03f9c73bc5 refactor: APIで非JSON入力の型変換はendpointに渡す前に行うように (#8229)
* Resolve #8228

* fix
2022-01-31 01:40:27 +09:00
syuilo
8c76984b53 update misskey-js 2022-01-30 11:32:42 +09:00
shibao
bfa5657006 Add img-src and media-src to Content-Security-Policy header for files and media proxy (#8188)
* add img-src and media-src to csp in file and media proxy

* add csp changes to changelog

* sort and remove trailing semicolon
2022-01-29 02:23:18 +09:00
syuilo
d12f8e8914 refactor(backend): fix type 2022-01-26 18:52:40 +09:00
syuilo
76ec0fc095 refactor(backend): fix type 2022-01-26 18:48:44 +09:00
syuilo
5414944b21 refactor: fix type 2022-01-26 18:42:14 +09:00
syuilo
1e31e8d1ca refactor(backend): use insert instead of save 2022-01-26 00:51:26 +09:00
MeiMei
3150708d7a refactor, enhance: ドライブ引数のオブジェクト化, 追加時のcomment指定 (#8180)
* refactor: ドライブの引数をオブジェクト化する Resolve #8177

* Resolve #8181

* fix

* archivePath
2022-01-23 22:52:35 +09:00
MeiMei
988f34f77d Unifying Misskey-specific IRIs in JSON-LD @context Resolve #8116 (#8178)
* Unifying Misskey-specific IRIs in JSON-LD `@context` Resolve #8116

* CHANGELOG
2022-01-23 01:52:35 +09:00
xianon
b0912f4893 NodeInfo にユーザー数と投稿数の情報を追加する (#8126) 2022-01-22 02:13:29 +09:00
syuilo
e1b9c22874 enhance: convert svg to png of custom emojis 2022-01-21 18:47:02 +09:00
syuilo
5ad811ea30 feat: increase files limit for note
#8062
2022-01-21 18:27:33 +09:00
syuilo
2328ddf9a3 refactor 2022-01-21 17:15:14 +09:00
syuilo
e7196f261d update deps 2022-01-21 17:04:48 +09:00
tamaina
3b1c365e81 enhance: e2eテストをできるだけ改良してみた (#8159)
* update docker image?

* 続

* serial run delete from "${table}" cascade

* use cypress official github action

* refuse install by cypress action

* clean up

* use wait?

* use more wait?

* Revert "use more wait?"

This reverts commit 18d0fcae9c7d8f98a4cafb4a846a031ece57350c.

* Revert "use wait?"

This reverts commit 5aa8feec9cdc3e2f79e566249f0a0eff6c0df6a0.

* fix

* test

* test

* log?

* 握りつぶしてみる

* clean up

* env?

* clean up?

* disable video

* add comment

* remove test

* 成功?

* test browser

* nodeインストール無効化

* node16.13.0-chrome95-ff94

* node.js復活

* ?

* ちょっと戻してみる

* chrome?

* cross browser test2

* --shm-size=2g

* artifact?

* misskey.local?

* firefoxはあきらめる

* not headless?

* oops

* fix

* ??

* test1

* if?

* fail-fast: false

* headless: false

* easy error ignoreing describe

* エラーの解消
とちょっとリファクター

* add browser name to artifact

* Install mplayer for FireFox

* no wait?

* タイムアウトを甘くしてみる

* firefoxをあきらめる(n回目)

* remove timeout setting

* wait復活

* Update basic.js

* Update index.js

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2022-01-21 16:43:56 +09:00
Johann150
627e3c07b9 enhance: Forward report (#8001)
* implement sending AP Flag object

Optionally allow a user to select to forward a report about a remote
user to the other instance. This is added in a backwards-compatible way.

* add locale string

* forward report only for moderators

* add switch to moderator UI to forward report

* fix report note url

* return forwarded status from API

apparently forgot to carry this over from my testing environment

* object in Flag activity has to be an array

For correct interoperability with Pleroma the "object" property of the Flag
activity has to be an array.

This array will in the future also hold the link to respective notes, so it
makes sense to correct this on our side.

* Update get-note-menu.ts

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2022-01-21 03:06:38 +09:00
Johann150
c42e63a1ca fix: code url in documentation (#8117)
It seems this was not changed while refactoring the modules apart.
2022-01-21 03:01:45 +09:00
syuilo
2e8c622c53 feat(server): add more metadata for emoji export 2022-01-21 02:56:08 +09:00
tamaina
56dbd1ae69 send-drive-file svg as png (#8107) 2022-01-20 03:05:52 +09:00
tamaina
9c12277948 fix: proxyでsvgをpngに変換するように (#8106)
* wip

* revert send-drive-file change

* fix

* Update packages/backend/src/server/proxy/proxy-media.ts

Co-authored-by: MeiMei <30769358+mei23@users.noreply.github.com>

Co-authored-by: MeiMei <30769358+mei23@users.noreply.github.com>
2022-01-20 03:03:28 +09:00
syuilo
93f79c1d8c refactor(server): use named export 2022-01-20 02:43:13 +09:00
syuilo
3230cdaa4f feat(server): store mime type of webpublic 2022-01-20 02:40:13 +09:00
syuilo
6c01a2aec1 refactor(server): use insert instead of save 2022-01-20 02:33:20 +09:00
tamaina
66ef4f1ebe refactor: APIエンドポイントファイルの定義を良い感じにする (#8154)
* Fix API Schema Error

* Delete SimpleSchema/SimpleObj
and Move schemas to dedicated files

* Userのスキーマを分割してみる

* define packMany type

* add ,

* Ensure enum schema and Make "as const" put once

* test?

* Revert "test?"

This reverts commit 97dc9bfa70851bfb7d1cf38e883f8df20fb78b79.

* Revert "Fix API Schema Error"

This reverts commit 21b6176d974ed8e3eb73723ad21a105c5d297323.

* ✌️

* clean up

* test?

* wip

* wip

* better schema def

* ✌️

* fix

* add minLength property

* wip

* wip

* wip

* anyOf/oneOf/allOfに対応? ~ relation.ts

* refactor!

* Define MinimumSchema

* wip

* wip

* anyOf/oneOf/allOfが動作するようにUnionSchemaTypeを修正

* anyOf/oneOf/allOfが動作するようにUnionSchemaTypeを修正

* Update packages/backend/src/misc/schema.ts

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

* fix

* array oneOfをより正確な型に

* array oneOfをより正確な型に

* wip

* ✌️

* なんかもういろいろ

* remove

* very good schema

* api schema

* wip

* refactor: awaitAllの型定義を変えてみる

* fix

* specify types in awaitAll

* specify types in awaitAll

* ✌️

* wip

* ...

* ✌️

* AllowDateはやめておく

* 不必要なoptional: false, nullable: falseを廃止

* Packedが展開されないように

* 続packed

* wip

* define note type

* wip

* UserDetailedをMeDetailedかUserDetailedNotMeかを区別できるように

* wip

* wip

* wip specify user type of other schemas

* ok

* convertSchemaToOpenApiSchemaを改修

* convertSchemaToOpenApiSchemaを改修

* Fix

* fix

* ✌️

* wip

* 分割代入ではなくallOfで定義するように

Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
2022-01-18 22:27:10 +09:00
syuilo
da8e2891cc refactor: more common name 2022-01-16 10:45:48 +09:00
syuilo
fcb1232280 git add忘れ 2022-01-13 00:48:58 +09:00
syuilo
fafc01e663 feat: emojis import 2022-01-13 00:47:40 +09:00
syuilo
5bf0fb6934 feat: multiple emojis editing 2022-01-13 00:47:05 +09:00
syuilo
9117fd7a06 bye reversi 2022-01-12 17:34:53 +09:00
syuilo
a8ccb5ef81 bye room 2022-01-07 17:06:47 +09:00
syuilo
b3d8b01775 clean up 2022-01-04 18:01:30 +09:00
tamaina
a26ab96021 enhance: 許可されていないファイルタイプでは、オブジェクトストレージのファイル名に拡張子を付与しないように (#8108)
* 許可されていないファイルタイプでは、オブジェクトストレージのファイル名に拡張子を付与しないように

* add comment
2022-01-03 07:35:02 +09:00
syuilo
cbce987453 refactor(server): use insert instead of save 2022-01-03 03:17:16 +09:00
syuilo
21a7cb9546 refactor(server): use insert instead of save 2022-01-03 02:20:30 +09:00
syuilo
7b838bf462 lint 2022-01-03 02:12:50 +09:00
syuilo
eba4edc671 update deps 2022-01-02 02:15:12 +09:00
syuilo
382d6a3dd9 fix
d53795184c (r62707827)
2022-01-01 22:28:02 +09:00
syuilo
6bd6b72e1b Revert "revert d53795184"
This reverts commit aedbab17cc400ae7ac17498463504f40646e8673.
2022-01-01 22:25:30 +09:00
tamaina
336c7e0ebc wip (#8101) 2022-01-01 18:00:53 +09:00
syuilo
e50eff9de7 revert d53795184 2021-12-29 17:21:08 +09:00
syuilo
b0ecae7ec9 fix(server): エクスポートした絵文字の拡張子がfalseになることがあるのを修正 2021-12-29 17:04:13 +09:00
Johann150
1528a9c827 fix html blockquote conversion (#8069) 2021-12-29 04:15:28 +09:00
syuilo
d2b7d3a35c Update const.ts 2021-12-26 12:10:33 +09:00
syuilo
af1281fcb6 refactor 2021-12-26 12:08:22 +09:00
syuilo
7b9f7fb060 enhance(server): better content type detection 2021-12-26 01:43:51 +09:00
syuilo
2fd17e91aa refactor 2021-12-26 01:42:06 +09:00
tamaina
748547fbb4 Truncate push notification message (#8089)
* Truncate push notification message

* fix
2021-12-25 02:01:35 +09:00
tamaina
27d79eb3ee ノートページでRenoteである場合にnoindexを付加 (#8074) 2021-12-24 01:16:58 +09:00
syuilo
bf7602f729 update deps 2021-12-17 14:12:34 +09:00
syuilo
ed7077b312 Update 1639325650583-chart-v3.js 2021-12-14 23:13:09 +09:00
syuilo
89bbcf1807 enhance(backend): improve chart engine 2021-12-14 18:12:37 +09:00
syuilo
29545614d6 Update export-custom-emojis.ts 2021-12-12 06:24:13 +09:00
syuilo
1c5e99c9e8 refactor 2021-12-12 06:21:48 +09:00
syuilo
5f6b4d4f41 feat: カスタム絵文字エクスポート 2021-12-10 18:24:26 +09:00
syuilo
faacf3ae68 feat: improve follow export 2021-12-10 01:22:35 +09:00
syuilo
9b8d526ed0 fix lint 2021-12-09 23:58:30 +09:00
romaboo
27db3b99d2 feat: user-level instance mute (#7712)
* Update ja-JP.yml

* Added settable config for muted instances

* added psql query for removal of muted notes

* Added filtering and trimming for instance mutes

* cleaned up filtering of bad instance mutes and added a refresh at the end for the list on the client

* Added notification & streaming timeline muting

* Updated changelog

* Added missing semicolon

* Apply japanese string suggestions from robflop

Co-authored-by: Robin B. <robflop98@outlook.com>

* Changed Ja-JP instance mute title string to one suggested by sousuke

Co-authored-by: sousuke0422 <sousuke20xx@gmail.com>

* Update ja-JP instanceMuteDescription based on sousuke's suggestion

Co-authored-by: sousuke0422 <sousuke20xx@gmail.com>

* added notification mute

* added notification and note children muting

* Fixed a bug where local notifications were getting filtered on cold start

* Fixed instance mute imports

* Fixed not saving/loading instance mutes

* removed en-US translations for instance mute

* moved instance mute migration to js

* changed settings index back to spaces

* removed destructuring assignment from notification stream in instance mute check call

Co-authored-by: tamaina <tamaina@hotmail.co.jp>

* added .note accessor for checking note data instead of notification data

* changed note to use Packed<'Note'> instead of any and removed usage of snake case

Co-authored-by: tamaina <tamaina@hotmail.co.jp>

* changed notification mute check to check specifically for notification host

* changed to using single quotes

* moved @click to the end for the linter

* revert unnecessary changes

* restored newlines

* whitespace removal

Co-authored-by: syuilo <syuilotan@yahoo.co.jp>
Co-authored-by: Robin B. <robflop98@outlook.com>
Co-authored-by: sousuke0422 <sousuke20xx@gmail.com>
Co-authored-by: puffaboo <emilis@jigglypuff.club>
Co-authored-by: tamaina <tamaina@hotmail.co.jp>
2021-12-09 21:38:56 +09:00
syuilo
be3028c034 update deps 2021-12-09 21:31:36 +09:00
syuilo
d188fc9b0a fix(server): Fix #8032 2021-12-03 17:47:44 +09:00
syuilo
ba06b44bff refactoring
https: //github.com/misskey-dev/misskey/pull/7901
Co-Authored-By: MeiMei <30769358+mei23@users.noreply.github.com>
2021-12-03 11:43:05 +09:00
xianon
8f55ef86df fix: 画像ファイルの縦横サイズの取得で Exif Orientation を考慮する (#8014)
* 画像ファイルの縦横サイズの取得で Exif Orientation を考慮する

* test: Add rotate.jpg test

* Webpublic 画像を返す時のみ Exif Orientation を考慮して縦横サイズを返す

* test: Support orientation
2021-12-03 11:19:28 +09:00
nullobsi
d6f087495e feat: Undo Accept (#7980)
* allow breaking of follow

* send undo

* delete by using reject follow
2021-12-03 11:14:44 +09:00
xianon
2fb75ea5df /antennas/notes API で日付による絞り込みができるようにする (#8015) 2021-11-28 13:45:17 +09:00
MeiMei
f0441331e6 fix: toolsが動かないのを修正 (#8008)
* Move tools

* Fix DB
2021-11-26 13:41:49 +09:00
syuilo
450bfd58f1 move tools dir into src 2021-11-21 13:43:07 +09:00
syuilo
c07cb33165 implement dev command 2021-11-19 14:48:59 +09:00
syuilo
d4299f6eb3 improve ide support 2021-11-18 23:52:41 +09:00
syuilo
d254a05770 introduce lint for client
Resolve #7998
2021-11-18 23:32:43 +09:00
syuilo
a86a64e701 lint: warn non-null-assertion to reduce unexpected behaviour 2021-11-18 20:12:50 +09:00
syuilo
df9f8b1079 fix(client): improve error handling 2021-11-14 13:13:05 +09:00
syuilo
30a7f8bad1 fix for lint 2021-11-13 19:10:14 +09:00
syuilo
86cbe4857e Update .eslintrc.js 2021-11-13 19:10:08 +09:00
syuilo
5b2d5421c2 refactor 2021-11-12 21:11:21 +09:00