Commit graph

413 commits

Author SHA1 Message Date
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 0292c5196df48f67bb7914e925560ba69e2b2980.

* 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
MeiMei
070f1f3c6e
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
69975c2fdd chore: Use kebab-case for file names 2020-04-26 11:48:09 +09:00
MeiMei
9b07c5af05
リモートのカスタム絵文字リアクションを表示できるように (#6239)
* リモートのカスタム絵文字リアクションを表示できるように

* AP

* DBマイグレーション

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

* fix

* fix

* fix

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

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

* fix lint

* コメント

Co-authored-by: rinsuki <428rinsuki+git@gmail.com>
2020-04-12 20:32:34 +09:00
MeiMei
9fcf94b197
Fix url type of AP object #6231 (#6234) 2020-04-11 18:27:58 +09:00
MeiMei
d3c0f3c251
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
d4a630902d refactor: Use === 2020-04-04 08:46:54 +09:00
MeiMei
99fc77b678
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
356225af14
Use url if available (#6214)
* Fix #6213

* other link

* fix
2020-04-02 21:59:14 +09:00
MeiMei
a2d3d22b6e
オブジェクトストレージでS3のvirtual-host形式のサポートなど (#6148)
* オブジェクトストレージでS3のvirtual-host形式のサポートなど

* 表記揺れ

* more simply

* S3ならばs3ForcePathStyleしない
2020-03-14 11:33:19 +09:00
MeiMei
aa573c0063 Create ActivityでattributedToの補完とaudienceのコピーを行うように (#5873)
* attributedTo

* Create

* copy audiences between activity <=> object

* やっぱり匿名GETのpublicは必要

* fix
2020-02-08 21:40:06 +09:00
MeiMei
7be6501571
EmojiReaction => EmojiReact (#5877) 2020-02-07 21:37:24 +09:00
MeiMei
bd6de0e204
Fix #5848 (#5853) 2020-02-06 17:11:02 +09:00
MeiMei
988ac80087
Correct Like id generation (#5852) 2020-02-06 17:07:37 +09:00