Commit graph

301 commits

Author SHA1 Message Date
syuilo
493c83ef2d Refactor API (#4770)
* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* Update description.ts

* wip
2019-04-23 22:35:26 +09:00
syuilo
b0fce9b791 Fix #4768 2019-04-23 02:50:59 +09:00
syuilo
be11afc9b9 Add test 2019-04-18 14:39:49 +09:00
syuilo
a4257c0c60 Fix #4703 2019-04-18 14:34:47 +09:00
syuilo
c71df73355 Add type annotations 2019-04-18 14:29:17 +09:00
syuilo
bfa78631b3 [MFM] Better hashtag parsing 2019-04-18 00:40:56 +09:00
syuilo
3c2c9fc44b Refactor 2019-04-15 12:20:48 +09:00
tamaina
1c684cbf93 Better permisson Fix #2341 (#4611)
* Better permisson Fix #2341

* add kinds.ts

* test

* fix

* v11

* fix
2019-04-15 12:10:40 +09:00
syuilo
aba3c8d688 Fix test 2019-04-15 01:03:57 +09:00
syuilo
316715ad81 revert rename 2019-04-08 23:05:41 +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
Acid Chicken (硫酸鶏)
97d76809af Update reaction-lib.ts (#4580) 2019-03-26 22:24:46 +09:00
Acid Chicken (硫酸鶏)
0a7d696a37 Fix #4576 (#4579)
* Update update.ts

* Update api.ts
2019-03-26 22:24:14 +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
Acid Chicken (硫酸鶏)
50a45ce1a1 Add angle bracket covered url syntax to mfm (#4483)
* Add angle bracket covered url syntax to mfm

* Fix path

* Fix match

* Fix index
2019-03-14 21:23:15 +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
1536232f8b [MFM] Improve hashtag parsing 2019-03-05 22:18:29 +09:00
Aya Morisawa
06d678df6f Introduce option type (#4150)
* Introduce option type

* Improve test naming
2019-02-06 13:42:35 +09:00
syuilo
a8d5397f5e [MFM] Better hashtag parsing: Ignore slash 2019-02-06 00:05:26 +09:00
syuilo
f19a50e296 [Test] Disable some tests temporary 2019-01-31 17:15:14 +09:00
syuilo
76c80bd84d [Test] Better tests 2019-01-31 15:19:59 +09:00
syuilo
29d9dae8c3 Fix typo 2019-01-31 15:10:27 +09:00
syuilo
6b99e1695c [Test] Add MFM test 2019-01-31 14:31:25 +09:00
syuilo
44b84e39ac [MFM] Better syntax parsing
Allow nesting by same tag
2019-01-31 12:23:45 +09:00
Aya Morisawa
c2aa219dfc Fix import 2019-01-30 17:15:12 +09:00
Aya Morisawa
d034a10d54 Avoid export default 2019-01-30 16:56:27 +09:00
Aya Morisawa
01ce19aa7d Rename analyze to parse in MFM tests 2019-01-30 15:30:05 +09:00
Aya Morisawa
6ef6f06a21 Extract parsePlain function 2019-01-30 15:27:54 +09:00
Aya Morisawa
ec0b271add Merge plainParser into mfm 2019-01-30 15:12:48 +09:00
Aya Morisawa
047d4c47fe Rename html to toHtml 2019-01-30 14:57:13 +09:00
Aya Morisawa
1e48af9693 Extract MFM types 2019-01-30 14:51:30 +09:00
MeiMei
366d3b73ba Fix #4034 (#4037)
* Fix #4034

* improve
2019-01-29 20:33:28 +09:00
MeiMei
268306f796 リプライ/メンションされていれば非フォロワーへのフォロワー限定でも参照可能に (#4033)
* 非メンション/リプライ投稿がmentionsにあるかどうかはvisibilityと関係ないので削除

* リプライ/メンションされていれば非フォロワーでも参照可能に
2019-01-29 17:34:43 +09:00
MeiMei
f21752365a Fix visibility test (#4031) 2019-01-29 15:16:11 +09:00
MeiMei
253e28e3d3 Add visibility test (#4029) 2019-01-29 13:46:24 +09:00
syuilo
582aae6494 [MFM] Resolve #4009 2019-01-27 19:32:35 +09:00
Aya Morisawa
e254ddb1c8 Add jump syntax (#4007)
* Add jump syntax

* Fix typo: spin -> jump

* Fix typo
2019-01-27 19:12:45 +09:00
Aya Morisawa
764c89c228 Merge branch 'develop' into math-block 2019-01-27 16:41:30 +09:00
syuilo
c5fef1cc32 Fix test 2019-01-27 16:36:01 +09:00
syuilo
ee81bd2955 [MFM] Add flip syntax
Resolve #4002
2019-01-27 16:31:00 +09:00
syuilo
5f10be3f9a [MFM] Add spin syntax
Resolve #4003
2019-01-27 16:18:04 +09:00
syuilo
eae0ff45c6 Improve readability and some cleanups 2019-01-27 13:55:11 +09:00
syuilo
b5f0911146 [Test] Add a MFM test 2019-01-27 13:48:56 +09:00
syuilo
4f810bab1a [MFM] Improve title syntax detection 2019-01-27 13:40:38 +09:00
Aya Morisawa
e53c969727 Add multiline math syntax
Co-authored-by: syuilo <syuilotan@yahoo.co.jp>
2019-01-25 23:08:06 +09:00
syuilo
059806016b Refactor 2019-01-25 19:37:45 +09:00
syuilo
e22c816982 [MFM] Improve italic syntax detection 2019-01-25 16:41:51 +09:00
syuilo
d99b1f53c2 [Test] Add sone streaming tests 2019-01-25 16:14:09 +09:00
syuilo
877264b01f Refactoring 2019-01-25 15:56:49 +09:00
syuilo
be0be75845 [Test] Add notes/timeline test 2019-01-25 10:58:39 +09:00
syuilo
916cb4b42e [Test] Add API test 2019-01-25 10:52:04 +09:00
syuilo
05435feee5 Fix test 2019-01-23 13:50:36 +09:00
syuilo
cba289e526 Fix test 2019-01-23 13:35:22 +09:00
syuilo
65a379be2e Refactor: Separate some test files 2019-01-23 12:15:27 +09:00
syuilo
a52d60f59b Update mfm.ts 2019-01-22 18:30:58 +09:00
syuilo
9f27a82d15 [Test] Add streaming test
#3955
2019-01-22 18:30:49 +09:00
syuilo
8fce769988 Update mfm.ts 2019-01-21 13:30:30 +09:00
syuilo
18c1f4aa86 [MFM] __ 構文はアルファベットのみに 2019-01-20 18:06:04 +09:00
ibrokemypie
57b4b20bb6 Add double underscore syntax for bold markdown (#3733)
* Add double underscore syntax for bold markdown
see https://github.com/syuilo/misskey/pull/3732
this allows bold text through either **text** or __text__

* Add tests for underscore bold mfm syntax
2019-01-20 18:00:55 +09:00
syuilo
a2fc3e9be9 Update mfm.ts 2019-01-20 17:53:08 +09:00
syuilo
9d93e1d659 [MFM] Add <i> syntax 2019-01-20 17:52:11 +09:00
ibrokemypie
273b78c080 Change italic syntax to fit with other markdown implementations (#3916)
currently italics require an html <i> syntax, unlike every other formatter. this is very confusing, especially as there doesnt seem to be any documentation.
this change makes both _text_ and *text* work, both things that users would expect from other implementations of markdown such as pleroma, discord and github.

Add test
2019-01-20 17:44:52 +09:00
syuilo
98bee28b36 [MFM] Better hashtag parsing: Ignore single quotation 2019-01-17 09:33:08 +09:00
syuilo
66e4010f1e [MFM] Better hashtag parsing: Ignore double quotation
Resolve #3886
2019-01-17 09:24:20 +09:00
Acid Chicken (硫酸鶏)
a883e70ad4 Support SVG (#3883)
* Update add-file.ts

* Update package.json

* Revert "Update add-file.ts"

This reverts commit ba0fe83b54a44493447208dfb3cc304a60df6fdd.

* Update add-file.ts

* Update package.json

* Update add-file.ts

* Update add-file.ts

* Create image.svg

* Update api.ts
2019-01-13 18:21:10 +09:00
syuilo
23bcb95c0a [MFM] Better hashtag parsing: Ignore trailing colon 2019-01-12 14:10:16 +09:00
Aya Morisawa
06d7e119ef Improve MFM bracket matching
Co-authored-by: syuilo <syuilotan@yahoo.co.jp>
2018-12-22 00:44:38 +09:00
Aya Morisawa
45c9667c5c Refactor MFM
Co-authored-by: syuilo syuilotan@yahoo.co.jp
2018-12-20 19:42:10 +09:00
Acid Chicken (硫酸鶏)
f2c676cbdd Re: #3457 (#3614)
* Update parser.ts

* Update user.ts

* Update search.ts

* Update parser.ts

* Update parser.ts

* Update parser.ts

* Update parser.ts

* Update parser.ts

* Update parser.ts

* Update mfm.ts

* Update parser.ts

* Merge branch 'develop' into 3440-mk2

* Fix typo

* Update parser.ts

* Update mfm.ts

* Update mfm.ts
2018-12-17 19:11:38 +09:00
Aya Morisawa
06eeb36ae5 Add small syntax (#3506) 2018-12-05 20:11:54 +09:00
syuilo
82e478f2e3 [MFM] Add italic syntax
Resolve #3486
2018-12-05 17:39:26 +09:00
syuilo
46c6611f36 [MFM] Implement strike syntax
Resolve #3485
2018-12-04 01:28:21 +09:00
syuilo
c8b69f2ee5 [MFM] Better hashtag detection 2018-12-02 06:53:57 +09:00
syuilo
44e44c69fd [MFM] Better MFM parsing 2018-12-01 10:40:09 +09:00
syuilo
f783ef38b5 [MFM] Improve hashtag detection 2018-11-29 20:12:37 +09:00
syuilo
66157b4829 Fix test 2018-11-29 06:33:23 +09:00
syuilo
bdd12c0bfc [MFM] Improve hashtag detection 2018-11-27 02:08:51 +09:00
syuilo
df88d82cae [MFM] Add center syntax
Resolve #1775
2018-11-25 13:36:40 +09:00
syuilo
38d4c0e9bb Add MFM test 2018-11-25 13:21:39 +09:00
syuilo
cba9250492 [MFM] Better hashtag parsing 2018-11-25 04:44:42 +09:00
syuilo
d75a6faeba [MFM] Fix hashtag detection 2018-11-24 17:18:11 +09:00
syuilo
0ce969d4a6 [MFM] Improve hashtag detection
Resolve #3387
2018-11-23 16:02:17 +09:00
Acid Chicken (硫酸鶏)
863197af59 Fix #3361 (#3362)
* Update create.ts

* Update api.ts
2018-11-22 05:06:51 +09:00
syuilo
dee36018fc Add some tests 2018-11-22 05:04:45 +09:00
syuilo
4705cd1008 [MFM] Improve URL parsing
Fix #3368
2018-11-22 05:02:38 +09:00
syuilo
12aa24d354 [MFM] Better inline code parse 2018-11-21 12:55:15 +09:00
syuilo
91622ff1db [MFM] Fix hashtag parsing 2018-11-21 08:30:29 +09:00
syuilo
60252911eb Improve MFM parser (#3337)
* wip

* wip

* Refactor

* Refactor

* wip

* wip

* wip

* wip

* Refactor

* Refactor

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* Clean up

* Update misskey-flavored-markdown.ts

* wip

* wip

* wip

* wip

* Update parser.ts

* wip

* Add new test

* wip

* Add new test

* Add new test

* wip

* Refactor

* Update parse.ts

* Refactor

* Update parser.ts

* wip
2018-11-21 05:11:00 +09:00
syuilo
381d7914fa [Test] Add a test and some updtes 2018-11-17 12:52:20 +09:00
Aya Morisawa
6e8a20eabe Change math syntax (#3280) 2018-11-17 00:31:49 +09:00
syuilo
5d8c97dbc7 [MFM] Improve various parsing
Resolve #2779
Resolve #3053
2018-11-16 21:57:19 +09:00
syuilo
5e877644ca [MFM] Better URL parsing 2018-11-16 21:30:01 +09:00
Aya Morisawa
97d4c04276 Support math rendering on MFM (#3260) 2018-11-16 17:03:52 +09:00
syuilo
25b0cbccc5 Fix test 2018-11-07 21:30:28 +09:00
syuilo
3c4530ab7a [Test] Add MFM test 2018-11-07 19:58:05 +09:00
syuilo
71d1c641d5 Fix test 2018-11-05 20:40:39 +09:00
syuilo
b40afd98e3 Insert missing spaces 2018-11-05 20:15:09 +09:00
syuilo
c50196826c Add test 2018-11-05 20:14:49 +09:00
syuilo
8ee3177a17 Fix test 2018-11-05 20:10:28 +09:00
syuilo
ecc3f412d1 Revert "Fix test fails"
This reverts commit b9b05a74017c37ae23986c005deac0a3465d497c.
2018-11-05 20:10:00 +09:00