Commit graph

1635 commits

Author SHA1 Message Date
tamaina
abdd627006 Merge branch 'develop' into swn 2021-10-07 14:33:10 +09:00
syuilo
8d05ef3058
fix(api): fix file type regex 2021-10-05 20:28:07 +09:00
Johann150
414f1d1158
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
tamaina
536ea6ea36 Merge branch 'develop' into swn 2021-09-23 22:33:36 +09:00
Johann150
ce32cd576b
fix inboxQueue import (#7829) 2021-09-23 22:32:16 +09:00
syuilo
5bf4f569e4 enhance(client): アップデートが利用可能な場合エラー表示およびダイアログ表示しないように 2021-09-22 22:45:10 +09:00
tamaina
14795b68f2
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
tamaina
0563fa6f56 Merge branch 'develop' into swn 2021-09-22 22:00:50 +09:00
syuilo
9208825975 feat(server): 管理者用アカウント削除API実装
動作確認済み
Resolve #7735
2021-09-22 17:34:48 +09:00
tamaina
e0dc391cf6 Merge branch 'develop' into swn 2021-09-19 15:12:57 +09:00
syuilo
54e0a7f8a8
feat: 凍結された場合のダイアログを実装 (#7811)
* feat: 凍結された場合のダイアログを実装

* Update CHANGELOG.md

* Update basic.js

* improve error handling

* cypressなんもわからん

* Update basic.js
2021-09-19 02:23:12 +09:00
tamaina
18d6a663f8 Merge branch 'develop' into swn 2021-09-18 21:19:23 +09:00
syuilo
a6958da091 enhance(server): アカウントが凍結されたときのエラーを判定しやすく 2021-09-18 17:58:37 +09:00
sousuke0422
07bb8067ae
fix: アンテナの既読 (#7803)
from: a89742319c
2021-09-18 13:30:28 +09:00
tamaina
1e7a4eebfe Merge branch 'stream-types' into swn 2021-09-17 22:50:41 +09:00
tamaina
ab237868ff Merge branch 'develop' into swn 2021-09-17 22:42:40 +09:00
tamaina
2a591861e7 clean up? 2021-09-12 23:49:21 +09:00
tamaina
9f4ad3c873 fix lint 2021-09-12 23:38:12 +09:00
tamaina
7fd5152f73 https://github.com/misskey-dev/misskey/pull/7769#issuecomment-917542339 2021-09-12 23:21:19 +09:00
tamaina
3945175ac7 Merge branch 'packed-type' into stream-types 2021-09-12 23:14:40 +09:00
tamaina
677a6aae2a note 2021-09-12 22:47:03 +09:00
tamaina
dee40b33d2 wip PackedHoge => Packed<'Hoge'> 2021-09-12 22:18:26 +09:00
tamaina
e777feae9a fix lint 2021-09-12 15:53:04 +09:00
tamaina
0714c56c41 channel 2021-09-12 01:37:55 +09:00
tamaina
217bf12aab antenna 2021-09-12 01:36:47 +09:00
tamaina
4bd42cf071 add type 2021-09-12 01:31:48 +09:00
tamaina
4ba33f24a5 clean up 2021-09-12 01:28:48 +09:00
tamaina
380d357a74 refactor 2021-09-12 01:27:20 +09:00
tamaina
8cafc4ee55 ev => data 2021-09-12 01:22:59 +09:00
tamaina
1cc72fdd73 clean up 2021-09-12 01:18:17 +09:00
tamaina
53f3b779bf
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
tamaina
2c494f1052 edit comment 2021-09-07 04:41:07 +09:00
tamaina
cd36102b90 edit comment 2021-09-07 04:01:06 +09:00
tamaina
1590cf000f edit comment 2021-09-07 03:58:58 +09:00
tamaina
fd55e2b5b5 wip 2021-09-07 03:31:56 +09:00
tamaina
be47a120d7 ✌️ 2021-09-07 02:40:38 +09:00
tamaina
4793d1cc56 送信側に型エラーがないことを3回確認した 2021-09-06 23:18:16 +09:00
tamaina
f6853b2254 ✌️ 2021-09-06 22:48:12 +09:00
tamaina
5db28922d0 wip 2021-09-06 22:47:27 +09:00
tamaina
f4652ec4ac wip 2021-09-06 22:12:07 +09:00
tamaina
3500705585 fix 2021-09-06 20:21:05 +09:00
tamaina
ac3dbcb114 wip 2021-09-06 20:20:39 +09:00
tamaina
70740c5e6d wip! 2021-09-06 18:29:23 +09:00
tamaina
dd175a8e6e wip 2021-09-06 17:56:17 +09:00
tamaina
ca82538e10 fix lint 2021-09-06 17:16:30 +09:00
tamaina
20c26c9dbd Merge branch 'expand-schema' into stream-types 2021-09-06 13:10:14 +09:00
tamaina
abbeb9a071 add simple-schema 2021-09-06 12:59:51 +09:00
tamaina
93fd76f841 remove no longer needed "as PackedUser/PackedNote" 2021-09-06 03:32:52 +09:00
tamaina
c86ac1c6ec yatta 2021-09-06 03:26:19 +09:00
tamaina
110de167e8 ok 2021-09-06 01:38:48 +09:00