Commit Graph

465 Commits

Author SHA1 Message Date
シアノン 07526ada45
perf: delete-account処理を軽くする (#7958)
* Revert "#7892"

This reverts commit 71d9c2a53d.

* アカウント削除処理でノート削除を重複して行なわないようにする

* ドライブファイル削除時に参照しているノートを削除しないようにする

* 不要となったコードを削除する
2021-11-06 18:57:49 +09:00
syuilo 71d9c2a53d #7892 2021-11-05 17:59:46 +09:00
marihachi 1c38c7010d
refactor: Introduce list of MFM Functions (#7882)
* introduce list of MFM Functions

* add note
2021-11-01 23:47:13 +09:00
MeiMei e2556189de
fix: 削除したノートやユーザーがリモートから参照されると復活することがあるのを修正 (#7918)
* Fix #7557

* CHANGELOG

* Fix user

* CHANGELOG

* Tune CHANGELOG

* Tune CHANGELOG

* resolver

* Remove check

* Remove import

* CHANGELOG

* Tune

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2021-10-31 18:01:16 +09:00
MeiMei f47a564819
fix: Fix #7895 (#7937)
* Fix #7895

* CHANGELOG
2021-10-31 15:18:46 +09:00
syuilo 98c26dfff8 fix(activitypub): not reacted な Undo.Like がinboxに滞留するのを修正
https: //github.com/mei23/misskey/commit/1cfb5e09a44819b82333df26409ec9d9657bdcfc
Co-Authored-By: MeiMei <30769358+mei23@users.noreply.github.com>
2021-10-21 00:28:27 +09:00
MeiMei 482081c41b
Refactor request (#7814)
* status code

* Test ap-request.ts

4397fc5e70/test/ap-request.ts

* tune
2021-10-16 17:16:24 +09:00
syuilo f0b2eaf70d fix bug 2021-10-03 12:27:29 +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
nullobsi d5702f9d51
add resolver check for blocked instance (#7777)
* add resolver check for blocked instance

* lint

* Update note.ts
2021-09-18 15:45:02 +09:00
MeiMei 608ff73907
feat: リモートからユーザー削除が飛んできたら削除するように (#7768)
* Delete Actor

* Update src/remote/activitypub/kernel/delete/actor.ts

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

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2021-09-05 23:35:48 +09:00
syuilo 97f2675d40 refactor: use path alias to improve readability 2021-08-19 22:04:15 +09:00
syuilo 42cc93dd0f fix: mochaが動かないため拡張子なしに戻した 2021-08-19 21:55:45 +09:00
syuilo b9cb6d1c10 refactor: refactoring imports
将来ESMに移行しやすいように
Related: #7658

なんかmochaが起動しなくなってるけど理由不明
すぐ直したい
2021-08-19 18:33:41 +09:00
MeiMei 7ebdd4739a
Fix truncate (#7642) 2021-08-17 17:25:19 +09:00
Johann150 f05f7c920e
fix: truncate user information if it is too long (#7629)
* truncate user information if it is too long

Some AP software allows for user names or summaries to be very long.
Misskey can not handle this and the profile page can not be opened and
no activities from such users can be seen.

Instead, the user name and summary are cut off after the maximum length
so misskey can still process the activities of the profile.

Co-authored-by: Toast <toast@toast.cafe>

* fix code style

Co-authored-by: Toast <toast@toast.cafe>
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2021-08-14 18:11:47 +09:00
syuilo 3e45e6c165 Clean up 2021-08-07 19:21:17 +09:00
MeiMei 1772af9583
AP Actorの修正 (#7573)
* AP Actorの修正

* Add ActivityPub test

* Fix person

* Test

* ap test

* Revert "Test"

This reverts commit 3c493eff4e89f94fd33f25189ba3bc96ef4366b3.

* Test comment

* fix

* fix

* Update inbox

* indent

* nl

* indent

* TODO

* Fix inbox

* Update test
2021-07-10 23:14:57 +09:00
syuilo 89fb727f61 Update type.ts 2021-06-01 19:17:17 +09:00
MeiMei caf40e40fb
Supports Array ActivityStreams type (#7536)
* Supports Array type

* Fix

* Fix Service to Note

* Update type.ts

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2021-05-31 13:04:13 +09:00
nullobsi ffb9646ce9
Add image description support (#7518)
* recieve image descriptions under the name property

* fix other components

* use comment for alt and title

* allow editing of file comment

* allow editing of file comment in note dialog

* federate note comments

* use file instead of this

* backend should accept comment on update

* update now actually accepts comment

* allow multiline descriptions

* image should also have description attached

* Update locales/ja-JP.yml

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

* Use custom component with side-by-side image

* improve usability on mobile devices

* revert changes

* Update post-form-attaches.vue

* Update drive.file.vue

* Update media-caption.vue

Co-authored-by: rinsuki <428rinsuki+git@gmail.com>
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2021-05-28 09:38:09 +09:00
MeiMei b16c3798a4
Fix Announce/Delete AP deliver (#7517)
* Fix Announce/Delete AP deliver

* Revert "Fix Announce/Delete AP deliver"

This reverts commit 0292c5196d.

* localOnlyのDeleteをdeliverしないように

* null Activityに対するUndoはdeliverしないように
2021-05-19 16:15:01 +09:00
MeiMei 7dc85a624e
Update preloaded JSON-LD (#7521) 2021-05-19 16:10:43 +09:00
MeiMei bfd215542b
@contextをちゃんと付ける (#7522) 2021-05-19 16:00:08 +09:00
MeiMei 917e57d475
Fix #7431 (#7432)
* Fix #7431

* fix
2021-05-11 12:41:02 +09:00
syuilo 1f4ae2f63a
Use mfm-js for MFM parsing (#7415)
* wip

* Update mfm.ts

* wip

* update mfmjs

* refactor

* nanka

* Update mfm.ts

* Update to-html.ts

* Update to-html.ts

* wip

* fix test

* fix test
2021-04-02 10:36:11 +09:00
syuilo d7c7bc5d8e fix type 2021-03-24 11:28:56 +09:00
syuilo ce340aba7a
Refactor (#7394)
* wip

* wip

* wip

* wip

* wip

* Update define.ts

* Update update.ts

* Update user.ts

* wip

* wip

* Update request.ts

* URL

* wip

* wip

* wip

* wip

* Update invite.ts

* Update create.ts
2021-03-24 11:05:37 +09:00
syuilo c74fe3c6e2 refactor: Use path alias 2021-03-23 17:43:07 +09:00
syuilo 7c3086e9d9 perf(server): Cache user keypair 2021-03-22 15:14:54 +09:00
syuilo 41b491fa7c refactor: Use Set 2021-03-21 21:00:59 +09:00
MeiMei 9bc0110b86
Fix #7212 (#7215) 2021-02-17 21:34:51 +09:00
syuilo 91172654e4 refactor: resolve #7139 2021-02-13 15:33:38 +09:00
syuilo 0a64d121d9 Resolve #7149 2021-02-07 10:43:34 +09:00
InspectorCaracal 885f8e1856
Parse followers audience from followers URI (#7112)
* add followersUri

* add followersUri to audience parse

* fetch followersUri

* followersUri db migration

* update followersUri

* Rename 1611354329133-followersUri to 1611354329133-followersUri.ts

* typo

* Update person.ts

* create/update person consistency

* Update audience.ts

* missing paren

* tabs

* use strict equality

* Update audience.ts
2021-02-06 11:50:33 +09:00
syuilo 69c3c4e3dc
Resolve #6806 (#6935)
* ✌️

* ✌️

* Update privacy.vue
2020-12-11 21:16:20 +09:00
MeiMei cd0b0012d9
メッセージ (トーク/チャット) 削除の連合 (#6789) 2020-11-01 12:14:42 +09:00
syuilo 87f61e714a Resolve #6087 2020-10-19 19:29:04 +09:00
MeiMei 85a0f696bc
ActivityPubでリモートのオブジェクトをGETするときのリクエストをHTTP Signatureで署名するオプション (#6731)
* Sign ActivityPub GET

* Fix v12, v12.48.0 UI bug
2020-10-18 01:46:40 +09:00
syuilo f104e9b6cc chore: better error text 2020-09-17 21:05:47 +09:00
syuilo 9855405b89
Channel (#6621)
* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wop

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* add notes

* wip

* wip

* wip

* wip

* sound

* wip

* add kick_gaba2

* wip
2020-08-18 22:44:21 +09:00
MeiMei 122076e8ea
Sign (request-target) Fix #6652 (#6656) 2020-08-15 04:27:19 +09:00
Xeltica 71878f93e4
自分のノートにリアクションを押せるように (#6506)
* resolve #6468

* リモートから来たセルフリアクションの対応
2020-07-30 20:28:35 +09:00
syuilo f1ef85b636
feat(server): Fetch icon url of an instance (#6591)
* feat(server): Fetch icon url of an instance

Resolve #6589

* chore: Rename the function
2020-07-26 11:04:07 +09:00
syuilo 3f71b14637 feat: Blurhash integration
Resolve #6559
2020-07-19 00:24:07 +09:00
MeiMei 5f8fb43cc9
AP Delate Activityの修正 (#6512) 2020-07-11 06:19:49 +09:00
MeiMei 23e2a870cc
プロフィールの「場所」「誕生日」を連合するように Resove #6461 (#6463)
* AP birthday, location

* unset is null

* isCatを検証対象に
2020-06-21 14:09:01 +09:00
MeiMei 1726ff3977
AP向けのアンケートのfallbackリンクなどを削除 (#6466) 2020-06-14 10:26:13 +09:00
MeiMei 145389768d
pub-relay (#6341)
* pub-relay

* relay actorをApplicationにする

* Disable koa-compress

* Homeはリレーに送らない

* Disable debug

* UI

* cleanupなど
2020-05-10 18:42:31 +09:00
MeiMei d6a8889d84
Receive Flag (#6331) 2020-05-09 08:25:23 +09:00