Commit graph

113 commits

Author SHA1 Message Date
syuilo
0e4a111f81 refactoring
Resolve #7779
2021-11-12 02:02:25 +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
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
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
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
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
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
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
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
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
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
23e2a870cc
プロフィールの「場所」「誕生日」を連合するように Resove #6461 (#6463)
* AP birthday, location

* unset is null

* isCatを検証対象に
2020-06-21 14:09:01 +09:00
syuilo
69975c2fdd chore: Use kebab-case for file names 2020-04-26 11:48:09 +09:00
MeiMei
9fcf94b197
Fix url type of AP object #6231 (#6234) 2020-04-11 18:27:58 +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
syuilo
7ed3448e13 Resolve #1669 2020-02-01 07:16:52 +09:00
syuilo
7a6b5b0bfc Remove unused import 2019-11-18 06:30:58 +09:00
syuilo
e406791b7b Fix bug 2019-11-18 06:27:22 +09:00
syuilo
4ce2f596ee Refactor 2019-11-18 06:25:47 +09:00
syuilo
77c9b90e6d
Store nodeinfo per federated instances (#5578)
* Store nodeinfo per federated instances

* Update fetch-nodeinfo.ts

* Update fetch-nodeinfo.ts

* update
2019-11-05 22:14:42 +09:00
MeiMei
4f2b4366f2 Fix #5539 (#5542) 2019-10-28 20:34:01 +09:00
MeiMei
a103ae6755 Fix #5508 (#5509) 2019-10-16 04:03:51 +09:00
syuilo
4dc4ac2f0c Decrease tag limit 2019-09-27 05:18:09 +09:00
Acid Chicken (硫酸鶏)
bf9da8458c Limit the tag counts to 100 (#5263)
* Limit the tag counts to 256

* Update create.ts

* Update create.ts

* Update create.ts

* Limit the user tag
2019-09-27 05:16:59 +09:00
MeiMei
e14509574d AP featured collectionの修正 / Collection Activityの対応 / typeの修正など (#5460)
* resolver type / fix updateFeatured

* type ApObject

* fix strange type

* AP Activity

* Collection Activityが失敗したらとりあえず無視
2019-09-27 04:58:28 +09:00
Satsuki Yanagi
a85f4c4fc4 Resolve #2716 (#5340)
* Resolve #2716

* Update ja-JP.yml
2019-08-25 16:11:20 +09:00
MeiMei
7ecfc007a9 updateHashtagを並列で行わないように (#5284) 2019-08-18 12:47:45 +09:00
syuilo
1331f0b953
Use WHATWG API
> New application code should use the WHATWG API.
2019-06-18 15:27:13 +09:00
syuilo
2615368b1e
Resolve #365 2019-06-15 00:07:41 +09:00
MeiMei
410b9ad6bc Fix: ピン留め投稿の表示順がおかしい (#4906)
* Fix: syuilo#4904

* fix comment
2019-05-12 09:37:00 +09:00
MeiMei
a78475844a Fix: リモートユーザーの修復処理が自動的に実行されない など for v11 (#4764)
* Fix #4761

* Fix: updatePersonができない
2019-04-21 23:57:44 +09:00
syuilo
2934b09361
Fix bug 2019-04-19 21:37:36 +09:00
syuilo
a95546ede0
Fix bug 2019-04-19 01:00:17 +09:00
syuilo
e3b3f8fac1
Better error handling 2019-04-14 04:17:24 +09:00
syuilo
987168b863
strictNullChecks (#4666)
* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip
2019-04-13 01:43:22 +09:00
syuilo
b89cffe98d
Fix bug 2019-04-12 02:22:22 +09:00
syuilo
2ff3069d23
トランザクションを使うようにしたり 2019-04-12 01:52:25 +09:00
MeiMei
2a7e3b9c51 Fix: AP actor Service のサポートが不完全 (v11) (#4662) 2019-04-11 03:09:12 +09:00
syuilo
2a40240310
Fix bug 2019-04-10 18:35:51 +09:00
syuilo
626cfb61ac
テーブル分割 2019-04-10 15:04:27 +09:00