Commit graph

418 commits

Author SHA1 Message Date
nullobsi
03ed2dab86 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
90ce17c0ca 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
6216ab9372 refactor: use path alias to improve readability 2021-08-19 22:04:15 +09:00
syuilo
aaef4f50e0 fix: mochaが動かないため拡張子なしに戻した 2021-08-19 21:55:45 +09:00
syuilo
d2b5b67b44 refactor: refactoring imports
将来ESMに移行しやすいように
Related: #7658

なんかmochaが起動しなくなってるけど理由不明
すぐ直したい
2021-08-19 18:33:41 +09:00
MeiMei
1c3aa4d448 Fix truncate (#7642) 2021-08-17 17:25:19 +09:00
Johann150
57a59c59f0 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
827a02baba Clean up 2021-08-07 19:21:17 +09:00
MeiMei
ee553726c1 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
7875cc303f Update type.ts 2021-06-01 19:17:17 +09:00
MeiMei
8ab2f13a64 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
7727e5178e 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
8d709351bd Fix Announce/Delete AP deliver (#7517)
* Fix Announce/Delete AP deliver

* Revert "Fix Announce/Delete AP deliver"

This reverts commit 0292c5196df48f67bb7914e925560ba69e2b2980.

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

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

* fix
2021-05-11 12:41:02 +09:00
syuilo
9df5374022 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
b32423bd7b fix type 2021-03-24 11:28:56 +09:00
syuilo
4d341c5918 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
0db09532b2 refactor: Use path alias 2021-03-23 17:43:07 +09:00
syuilo
f5d6d8c42a perf(server): Cache user keypair 2021-03-22 15:14:54 +09:00
syuilo
d60600fa26 refactor: Use Set 2021-03-21 21:00:59 +09:00
MeiMei
725287abf9 Fix #7212 (#7215) 2021-02-17 21:34:51 +09:00
syuilo
b8a1810960 refactor: resolve #7139 2021-02-13 15:33:38 +09:00
syuilo
e5b6645d3a Resolve #7149 2021-02-07 10:43:34 +09:00
InspectorCaracal
3846688870 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
4ba8750344 Resolve #6806 (#6935)
* ✌️

* ✌️

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

* Fix v12, v12.48.0 UI bug
2020-10-18 01:46:40 +09:00
syuilo
61cff78b43 chore: better error text 2020-09-17 21:05:47 +09:00
syuilo
481aa17886 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
696f8c9638 Sign (request-target) Fix #6652 (#6656) 2020-08-15 04:27:19 +09:00
Xeltica
9417b30d12 自分のノートにリアクションを押せるように (#6506)
* resolve #6468

* リモートから来たセルフリアクションの対応
2020-07-30 20:28:35 +09:00
syuilo
4a43415ff8 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
0c9a52940f feat: Blurhash integration
Resolve #6559
2020-07-19 00:24:07 +09:00
MeiMei
9e5257b5a0 AP Delate Activityの修正 (#6512) 2020-07-11 06:19:49 +09:00
MeiMei
95b3184d7e プロフィールの「場所」「誕生日」を連合するように Resove #6461 (#6463)
* AP birthday, location

* unset is null

* isCatを検証対象に
2020-06-21 14:09:01 +09:00
MeiMei
7982f2bf47 AP向けのアンケートのfallbackリンクなどを削除 (#6466) 2020-06-14 10:26:13 +09:00
MeiMei
fe841db55a 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
1ca1a73bd7 Receive Flag (#6331) 2020-05-09 08:25:23 +09:00
MeiMei
ed29826df2 APリファクタとLD-Signatureの検証に対応 (#6300)
* DbResolver

* inbox types

* 認証順を変更

* User/Keyあたりをまとめる

* LD-Signatue

* Validate contexts url

* LD-Signature DocumentLoaderにProxyとTimeout
2020-05-09 08:21:42 +09:00
syuilo
4ebe9f3cb3 chore: Use kebab-case for file names 2020-04-26 11:48:09 +09:00
MeiMei
2905e56a72 リモートのカスタム絵文字リアクションを表示できるように (#6239)
* リモートのカスタム絵文字リアクションを表示できるように

* AP

* DBマイグレーション

* ローカルのリアクションの.

* fix

* fix

* fix

* space
2020-04-14 00:42:59 +09:00
MeiMei
69dd52920e プロキシの除外ホスト (#6244)
* プロキシの除外ホスト

* オブジェクトストレージとの通信にProxyを使うかを選択できるように

* fix lint

* コメント

Co-authored-by: rinsuki <428rinsuki+git@gmail.com>
2020-04-12 20:32:34 +09:00
MeiMei
e1b532f39b Fix url type of AP object #6231 (#6234) 2020-04-11 18:27:58 +09:00
MeiMei
a74358ec03 Use node-fetch instead of request (#6228)
* requestをnode-fetchになど

* format

* fix error

* t

* Fix test
2020-04-09 23:42:23 +09:00
syuilo
cefbecb94c refactor: Use === 2020-04-04 08:46:54 +09:00
MeiMei
8e13f6a7e0 APメンションはaudienceじゃなくてtagを参照するなど (#6128)
* APメンションはaudienceじゃなくてtagを参照するなど

* AP/tag/Mentionではurlじゃなくてuriを提示する

* createPersonでaliasが入力された場合に対応

* AP HTMLパースでMention/Hashtag判定にtagを使うように

* fix

* indent

* use hashtag name

* fix

* URLエンコード不要だったら<>を使わないの条件が消えたたのを修正
2020-04-03 22:51:38 +09:00
MeiMei
2be9c67fd1 Use url if available (#6214)
* Fix #6213

* other link

* fix
2020-04-02 21:59:14 +09:00