Commit graph

440 commits

Author SHA1 Message Date
MeiMei
6ecc7f8f25 Fix AP inbox Announce (#5641) 2019-12-15 03:32:48 +09:00
MeiMei
1a98dafc27 Resolve syuilo#5548 (#5607) 2019-12-12 00:41:26 +09:00
MeiMei
dc5b2bf02c AP Signatureヘッダの特殊処理を削除 (#5628) 2019-12-11 23:14:51 +09:00
syuilo
d1550cf9e6 Update dependencies 🚀 2019-11-24 17:09:32 +09:00
syuilo
83fb424471 Remove unused import 2019-11-18 06:30:58 +09:00
syuilo
bd4fd5efe0 Fix bug 2019-11-18 06:27:22 +09:00
syuilo
d504afa9d1 Refactor 2019-11-18 06:25:47 +09:00
syuilo
59ba7e2b34 Refactor 2019-11-18 06:23:44 +09:00
MeiMei
007f4bcef0 無駄なAP deliverをしないように (#5589)
* DeliverManager, note/create

* recipe

* followers delivers

* comment

* rename

* fix

* cleanup
2019-11-09 18:51:54 +09:00
MeiMei
37cd41e0c9 APの統計とログの修正と強化 (#5585)
* Fix #5580

* Improve AP logging
2019-11-07 00:02:18 +09:00
syuilo
25dedfb911 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
125936baa3 Preserve the attached order in AP (#5561)
* Preserve the attached order in AP

* Revert "Preserve the attached order in AP"

This reverts commit 8ac09cc81b1c216edccd2eba4bbdf0a194320883.

* use IN
2019-11-01 05:46:20 +09:00
MeiMei
d365b9d5f1 Talk federation (#5534) 2019-10-29 06:01:14 +09:00
MeiMei
1868e2eb95 Fix #5539 (#5542) 2019-10-28 20:34:01 +09:00
Takeshi Umeda
f1a5b1ebf7 Add ssl to elasticsearch config settings (#5527) 2019-10-21 00:41:12 +09:00
MeiMei
7fbab77ef9 Fix #5508 (#5509) 2019-10-16 04:03:51 +09:00
syuilo
2fe704bb71 Decrease tag limit 2019-09-27 05:18:09 +09:00
Acid Chicken (硫酸鶏)
ca02c57625 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
f1753c3958 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
MeiMei
f9f41c67bf Fix typo - invalied (#5433)
* Fix typo - invelied

* fix Valied
2019-09-15 23:27:33 +09:00
MeiMei
ee02bf6b32 AP Lock (#5410) 2019-09-09 22:46:45 +09:00
MeiMei
5fbf30e00d AP Undo Announce (#5400)
* AP Undo Announce

* Use activity id
2019-09-08 11:30:44 +09:00
MeiMei
87d3f36f21 excludeNsfwやCWのNSFW扱いなど (#5341)
* NoteにisSensitive

* Revert "NoteにisSensitive"

This reverts commit 3d5bcfbaf078ff91257a508f817dd1ef4ea31d7b.

* query excludeNsfw

* AP deliverでCW付きはsensitiveにするように

* excludeNsfwでCW付きも除くように
2019-08-27 17:33:07 +09:00
Satsuki Yanagi
879ea73909 Resolve #2716 (#5340)
* Resolve #2716

* Update ja-JP.yml
2019-08-25 16:11:20 +09:00
MeiMei
08d9a6a720 updateHashtagを並列で行わないように (#5284) 2019-08-18 12:47:45 +09:00
Satsuki Yanagi
112f1e1ae4 uuid() と lint (#5288)
* Import only v4 uuid, uuid() without version is deprecated

* Add Missing semicolon
2019-08-18 12:42:58 +09:00
MeiMei
40dc468a99 HTTPリクエストのKeep-AliveとPrxoy対応など (#5226)
* DriveのKeep-Alive, Proxy と APのProxy対応

* request系でKeep-Aliveするように

* fix lookup-dns-cache.d.ts

* remove debug output
2019-07-28 09:49:02 +09:00
MeiMei
f2fec97287 AP Emojiのupdatedは採用しないように (#5220)
* AP Emojiのupdatedは採用しない

* updated判定は残す
2019-07-28 05:32:40 +09:00
MeiMei
f69a404588 Fix question (#5197) 2019-07-20 03:20:06 +09:00
MeiMei
915145ee64 Mastodonのリンクの所有者認証に対応 (#5161)
* Profile metadata を設定できるように

* API desc
2019-07-18 00:11:39 +09:00
MeiMei
2bcbe47cd6 Fix: AP object / actor type (#5086)
* attributedToがArrayの場合などに対応

* attachment以外で来るDocument系のObjectに対応

* Renote, Reply 対応

* 表示をいい感じに

* fix type

* revert as const

* Fix Note / Question type

* attributedToのtypeで複合配列を想定する
2019-06-28 18:54:09 +09:00
MeiMei
90ce12f99b Block all activities from suspended users (#5076) 2019-06-21 15:42:07 +09:00
syuilo
c43d10aa3c Use WHATWG API
> New application code should use the WHATWG API.
2019-06-18 15:27:13 +09:00
MeiMei
a002f0262c 閉鎖しているホストにはAP deliverしないように (#5057)
* 閉鎖しているホストにはAP deliverしないように

* fix case
2019-06-15 17:09:59 +09:00
syuilo
9c2bad300a Resolve #365 2019-06-15 00:07:41 +09:00
MeiMei
55616b16e1 Fix: ピン留め投稿の表示順がおかしい (#4906)
* Fix: syuilo#4904

* fix comment
2019-05-12 09:37:00 +09:00
MeiMei
ab46232d59 Validate Note on createNote (#4881) 2019-05-09 15:43:31 +09:00
MeiMei
0b3526d3db Fix: IPv4 onlyホストからDualstackホストにAP deliverできない (#4872) 2019-05-07 17:49:25 +09:00
MeiMei
3f86541215 Fix #4704 (#4797)
*  Fix #4632

* Fix #4795
2019-04-25 04:07:39 +09:00
syuilo
41b4c81335 Cache meta 2019-04-24 08:11:19 +09:00
MeiMei
e36491c169 Fix: リモートユーザーの修復処理が自動的に実行されない など for v11 (#4764)
* Fix #4761

* Fix: updatePersonができない
2019-04-21 23:57:44 +09:00
syuilo
9813f33fb8 Fix bug 2019-04-19 21:37:36 +09:00
syuilo
dfb6d5bad8 Fix bug 2019-04-19 01:00:17 +09:00
syuilo
162b923a53 Fix indent 2019-04-18 00:13:31 +09:00
syuilo
b47057a56f Better error handling 2019-04-18 00:09:08 +09:00
syuilo
0fd33c1172 Refactor 2019-04-17 14:32:59 +09:00
Acid Chicken (硫酸鶏)
f3cb1fd248 リファクタリング (#4587)
* Use I cap

* Avoid _

* Use default value instead of optional boolean

* Bye useless variable

* Bye verbose try-catch
2019-04-14 17:18:17 +09:00
syuilo
1b3848ee5d Better error handling 2019-04-14 04:17:24 +09:00
syuilo
89153efb4e Fix bug 2019-04-13 18:58:29 +09:00
syuilo
0d0a68f392 リプライ先をエラー時に無視すると本来は投票なのに投票じゃないと扱われおかしくなるのでエラーにするように 2019-04-13 18:45:07 +09:00
syuilo
b842b26bf0 Refactor 2019-04-13 18:14:32 +09:00
syuilo
8d94a6a8df strictNullChecks (#4666)
* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip
2019-04-13 01:43:22 +09:00
syuilo
dcf9421560 Better error handling 2019-04-12 13:07:56 +09:00
syuilo
57d1cb0f7c Fix bug 2019-04-12 02:22:22 +09:00
syuilo
c6c84b6dbf トランザクションを使うようにしたり 2019-04-12 01:52:25 +09:00
syuilo
c5df8bbda0 Clean up 2019-04-12 01:01:25 +09:00
MeiMei
3f08f6cbc6 Fix: AP actor Service のサポートが不完全 (v11) (#4662) 2019-04-11 03:09:12 +09:00
syuilo
df280d8e19 Clean up 2019-04-10 20:07:36 +09:00
syuilo
a12bdf3684 Fix bug 2019-04-10 18:35:51 +09:00
syuilo
4257105cb2 WebFingerリクエストで Proxy, Keep-Alive などをサポート #4658
Co-Authored-By: MeiMei <mei23@users.noreply.github.com>
2019-04-10 15:07:21 +09:00
syuilo
16965eb4a1 テーブル分割 2019-04-10 15:04:27 +09:00
syuilo
6ccd8002c2 Fix bug 2019-04-10 14:10:00 +09:00
syuilo
b22f9412fa More puny 2019-04-10 00:59:41 +09:00
syuilo
a3549f1c9f ドメインは常にPunycodeで保存するように 2019-04-09 23:59:32 +09:00
syuilo
54667224c5 isRemote --> isLink 2019-04-09 23:07:08 +09:00
syuilo
5863952a2b Fix bug 2019-04-08 16:41:41 +09:00
syuilo
4e60ec814b Fix bug 2019-04-08 03:35:02 +09:00
syuilo
aaf201f69f Fix bug 2019-04-08 00:46:01 +09:00
syuilo
c625323d8d Refactor 2019-04-07 23:06:07 +09:00
syuilo
2b8602bd1b Use PostgreSQL instead of MongoDB (#4572)
* wip

* Update note.ts

* Update timeline.ts

* Update core.ts

* wip

* Update generate-visibility-query.ts

* wip

* wip

* wip

* wip

* wip

* Update global-timeline.ts

* wip

* wip

* wip

* Update vote.ts

* wip

* wip

* Update create.ts

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* Update files.ts

* wip

* wip

* Update CONTRIBUTING.md

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* Update read-notification.ts

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* Update cancel.ts

* wip

* wip

* wip

* Update show.ts

* wip

* wip

* Update gen-id.ts

* Update create.ts

* Update id.ts

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* Docker: Update files about Docker (#4599)

* Docker: Use cache if files used by `yarn install` was not updated

This patch reduces the number of times to installing node_modules.
For example, `yarn install` step will be skipped when only ".config/default.yml" is updated.

* Docker: Migrate MongoDB to Postgresql

Misskey uses Postgresql as a database instead of Mongodb since version 11.

* Docker: Uncomment about data persistence

This patch will save a lot of databases.

* wip

* wip

* wip

* Update activitypub.ts

* wip

* wip

* wip

* Update logs.ts

* wip

* Update drive-file.ts

* Update register.ts

* wip

* wip

* Update mentions.ts

* wip

* wip

* wip

* Update recommendation.ts

* wip

* Update index.ts

* wip

* Update recommendation.ts

* Doc: Update docker.ja.md and docker.en.md (#1) (#4608)

Update how to set up misskey.

* wip

* ✌️

* wip

* Update note.ts

* Update postgre.ts

* wip

* wip

* wip

* wip

* Update add-file.ts

* wip

* wip

* wip

* Clean up

* Update logs.ts

* wip

* 🍕

* wip

* Ad notes

* wip

* Update api-visibility.ts

* Update note.ts

* Update add-file.ts

* tests

* tests

* Update postgre.ts

* Update utils.ts

* wip

* wip

* Refactor

* wip

* Refactor

* wip

* wip

* Update show-users.ts

* Update update-instance.ts

* wip

* Update feed.ts

* Update outbox.ts

* Update outbox.ts

* Update user.ts

* wip

* Update list.ts

* Update update-hashtag.ts

* wip

* Update update-hashtag.ts

* Refactor

* Update update.ts

* wip

* wip

* ✌️

* clean up

* docs

* Update push.ts

* wip

* Update api.ts

* wip

* ✌️

* Update make-pagination-query.ts

* ✌️

* Delete hashtags.ts

* Update instances.ts

* Update instances.ts

* Update create.ts

* Update search.ts

* Update reversi-game.ts

* Update signup.ts

* Update user.ts

* id

* Update example.yml

* 🎨

* objectid

* fix

* reversi

* reversi

* Fix bug of chart engine

* Add test of chart engine

* Improve test

* Better testing

* Improve chart engine

* Refactor

* Add test of chart engine

* Refactor

* Add chart test

* Fix bug

* コミットし忘れ

* Refactoring

* ✌️

* Add tests

* Add test

* Extarct note tests

* Refactor

* 存在しないユーザーにメンションできなくなっていた問題を修正

* Fix bug

* Update update-meta.ts

* Fix bug

* Update mention.vue

* Fix bug

* Update meta.ts

* Update CONTRIBUTING.md

* Fix bug

* Fix bug

* Fix bug

* Clean up

* Clean up

* Update notification.ts

* Clean up

* Add mute tests

* Add test

* Refactor

* Add test

* Fix test

* Refactor

* Refactor

* Add tests

* Update utils.ts

* Update utils.ts

* Fix test

* Update package.json

* Update update.ts

* Update manifest.ts

* Fix bug

* Fix bug

* Add test

* 🎨

* Update endpoint permissions

* Updaye permisison

* Update person.ts

#4299

* データベースと同期しないように

* Fix bug

* Fix bug

* Update reversi-game.ts

* Use a feature of Node v11.7.0 to extract a public key (#4644)

* wip

* wip

* ✌️

* Refactoring

#1540

* test

* test

* test

* test

* test

* test

* test

* Fix bug

* Fix test

* 🍣

* wip

* #4471

* Add test for #4335

* Refactor

* Fix test

* Add tests

* 🕓

* Fix bug

* Add test

* Add test

* rename

* Fix bug
2019-04-07 21:50:36 +09:00
MeiMei
e389529bee Fix #4546 (#4548)
* Refactor download

* emoji type
2019-03-21 04:50:44 +09:00
MeiMei
08144dfce4 Custom reaction (#4517)
* Custom reaction

* increase limit of reactions/delete

* リアクションの場合は OS標準の絵文字を使用 を迂回する

* カスタムリアクションを無効にする設定

* fix

* disableCustomReaction --> enableEmojiReaction

* Avoid MFM rendering

* 🎨

* 🎨

* Auto accept

* custom emoji reaction

* Improve usability

* Extract emojiRegex

* Fix

* Clean up

* 🎨

* 🎨

* toDbReaction で reaction は必須に

あとフォールバックは like に

* Clean up

* Make required

* 3eb08748fe (r266241728)

* Refactor

* Allow null
2019-03-18 00:03:57 +09:00
MeiMei
d545fa9420 updatePersonを試行した時点でもlastFetchedAtを更新する (#4510) 2019-03-16 09:55:19 +09:00
MeiMei
f01e0b5cd4 Accept Article object (#4499) 2019-03-15 00:23:24 +09:00
Acid Chicken (硫酸鶏)
84d7a33067 Follow #3676 2019-03-14 22:18:31 +09:00
Acid Chicken (硫酸鶏)
bcdd4ba366 Follow #3676 2019-03-14 01:20:25 +09:00
MeiMei
1f1d4157db Fix #4486 (#4487) 2019-03-13 11:21:16 +09:00
syuilo
e628128987 Add type annotation to avoid type error 2019-03-12 23:31:18 +09:00
MeiMei
0ec2e92ea6 Ignore 4xx references in AP (#4463)
* Ignore 4xx references

* remove unnecessary comment
2019-03-10 22:27:25 +09:00
syuilo
565c1afc20 Fix bug 2019-03-08 19:45:01 +09:00
MeiMei
a5581fda78 Implement Update Question (#4435)
* Update remote votes count

* save updatedAt

* deliver Update

* use renderNote

* use id

* fix typeof
2019-03-07 21:19:32 +09:00
Acid Chicken (硫酸鶏)
7ff7530f2e Enhance poll (#4409)
* Start working

* WIP: Enhance poll

* Fix bug

* Use `name` in voting note
refs: https://github.com/syuilo/misskey/issues/4407#issuecomment-469057296

* Fix style

* Refactor
Co-authored-by: MeiMei <30769358+mei23@users.noreply.github.com>

* WIP: Update poll editor

* Fix bug

* Fix bug
refs: https://github.com/syuilo/misskey/pull/4409#discussion_r

* Fix typo

* Better design

* Beautify poll editor

* Fix UI

* Fix bug
refs: https://github.com/syuilo/misskey/pull/4409#discussion_r262217524

* Add debug logging

* Fix bug

* Log deliver

* fix vote

* Update ap/show
refs: https://github.com/syuilo/misskey/pull/4409#issuecomment-469652386

* Update poll view

* Maybe done

* Add tests

* Fix path

* Fix test

* Fix test

* Fix test

* Fix expired check on AP

* Update note.ts

* Squashed commit of the following:

commit d9a4beabf851893b8992a0f4568265eb9d4f0b8e
Author: mei23 <m@m544.net>
Date:   Wed Mar 6 05:16:14 2019 +0900

    tune

commit 83ff421a6e978243f80ba9ec820189bc897e6e3b
Author: mei23 <m@m544.net>
Date:   Wed Mar 6 05:01:14 2019 +0900

    fallback

commit 0b566af973b115ade9e75ea4b8094ee2b329dabc
Author: mei23 <m@m544.net>
Date:   Wed Mar 6 04:40:12 2019 +0900

    Note

commit cc0296dd6127580ac584c40398db3f762a311f8b
Author: mei23 <m@m544.net>
Date:   Wed Mar 6 04:33:58 2019 +0900

    createで送る

* Squashed commit of the following:

commit ae696b1ed12568b27c27367ac5a77035c97c9a1f
Author: mei23 <m@m544.net>
Date:   Wed Mar 6 06:11:17 2019 +0900

    fix

commit b735e354e7a9e64534c4f17d04ecbc65fb735c21
Author: mei23 <m@m544.net>
Date:   Wed Mar 6 06:08:33 2019 +0900

    messge

commit d9a4beabf851893b8992a0f4568265eb9d4f0b8e
Author: mei23 <m@m544.net>
Date:   Wed Mar 6 05:16:14 2019 +0900

    tune

commit 83ff421a6e978243f80ba9ec820189bc897e6e3b
Author: mei23 <m@m544.net>
Date:   Wed Mar 6 05:01:14 2019 +0900

    fallback

commit 0b566af973b115ade9e75ea4b8094ee2b329dabc
Author: mei23 <m@m544.net>
Date:   Wed Mar 6 04:40:12 2019 +0900

    Note

commit cc0296dd6127580ac584c40398db3f762a311f8b
Author: mei23 <m@m544.net>
Date:   Wed Mar 6 04:33:58 2019 +0900

    createで送る

* Fix typo

* Update vote.ts

* Update vote.ts

* Update poll-editor.vue

* Update tslint.json

* Fix layout

* Add note

* Fix bug

* Rename text key

* 投票するときに投稿として扱わないように (#4425)

* wip

* 形式をMastodonと合わせた

* Bye something

* Use - instead of ~

* Redundancy

* Yes!

* Refactor

* Use moment instead of Date

* Fix indent

* Refactor

if (votes.length)
は必要なさそう

* Clean up

* Bye Date

* Clean

* Fix timer is not displayed

* Fix リモートから無期限pollにvoteできない

* Fix vote actor
2019-03-06 22:55:47 +09:00
syuilo
7e7a9e692a Better log 2019-03-04 14:02:42 +09:00
syuilo
a44030bff2 Better logs 2019-03-03 07:47:58 +09:00
syuilo
3d277fe4a0 ログをデータベースに保存して管理画面で見れるように 2019-03-02 18:51:59 +09:00
syuilo
0e5c9df3f5 Use camelCase 2019-02-24 12:53:22 +09:00
syuilo
12d125f44a Fix bug 2019-02-18 01:11:14 +09:00
syuilo
0701d0ceea ハッシュタグでユーザー検索できるように (#4298)
* ハッシュタグでユーザー検索できるように

* 🎨

* Increase limit

* リモートユーザーも表示

* Fix bug

* Fix bug

* Improve performance
2019-02-17 23:41:47 +09:00
MeiMei
ef73ff91e8 Limit the parallelism of AP object processing (#4193) 2019-02-09 13:01:21 +09:00
syuilo
c54f1928be Introduce per-instance chart (#4183)
* Introduce per-instance chart

* Implement chart view in client

* Handle note deleting

* More chart srcs

* Add drive stats

* Improve drive stats

* Fix bug

* Add icon
2019-02-08 16:58:57 +09:00
syuilo
308bcef08a Refactoring: Move chart dir into services dir 2019-02-08 04:31:33 +09:00
syuilo
dd0871dd59 Implement instance blocking (#4182)
* Implement instance blocking

* Add missing text

* Delete unnecessary file

* Covert Punycode to Unicode
2019-02-08 04:26:43 +09:00
syuilo
c59ca22a81 Revert 96bc17aa1014983d5e6bf8b4c05d898156995a0d 2019-02-07 21:02:33 +09:00
syuilo
4c819e29fd Improve instance stats 2019-02-07 15:00:44 +09:00
Aya Morisawa
ff80a2c934 Check config on load (#4170)
Co-authored-by: syuilo <syuilotan@yahoo.co.jp>
2019-02-06 22:44:55 +09:00
syuilo
40da658fb1 Better logs 2019-02-06 15:06:23 +09:00
syuilo
e6e3a7dd27 Add logs 2019-02-06 00:01:37 +09:00
syuilo
758d06249b Refactoring 2019-02-05 14:14:23 +09:00
syuilo
3b2734b1cd Better error log of WebFinger 2019-02-04 09:06:13 +09:00
syuilo
7948a3a11b Better error log of WebFinger 2019-02-04 09:02:23 +09:00