Commit Graph

907 Commits

Author SHA1 Message Date
anatawa12 93d3501c90
fix: replies are included even if withReplies = false in local timeline (#12074) 2023-10-19 17:29:09 +09:00
syuilo 431d8c7802 fix(backend): Redisがからのときにhybrid-timelineにwithReplies = trueでアクセスするとSQLのシンタックスエラーになる
Fix #12064
2023-10-19 16:22:19 +09:00
syuilo 1671575d5d perf(backend): ノートのリアクション情報をキャッシュすることでDBへのクエリを削減 2023-10-19 09:20:19 +09:00
syuilo 2dfbf97db4 refactor 2023-10-19 07:59:58 +09:00
syuilo fcc4864080 perf(backend): reduce needless populateMyReaction calls 2023-10-19 07:56:25 +09:00
Mar0xy cf6e720139
merge: branch `develop` 2023-10-18 19:56:42 +02:00
Mar0xy bb54909d8e
upd: filter fallback to db for silenced users 2023-10-18 19:51:10 +02:00
Mar0xy 4b230d792c
merge: upstream changes 2023-10-18 19:48:03 +02:00
Mar0xy a4a1b8bb8b
add: isSilenced handling to user and timeline 2023-10-18 13:34:16 +02:00
syuilo ae1e276085 fix of 6cc02fee99 2023-10-18 17:17:56 +09:00
syuilo 6b5ee43800 enhance(backend): improve fanout tl for stl 2023-10-18 15:51:50 +09:00
syuilo 6b7efb6f1d fix(backend): fix admin/get-user-ips error 2023-10-18 15:32:35 +09:00
Mar0xy c21d255604
add: Bot Trending Toggle, Hide Bot in Timeline client option 2023-10-18 07:29:16 +02:00
Mar0xy fa5cf36602
fix: reports not sending email
Closes transfem-org/Sharkey#81
2023-10-18 06:14:12 +02:00
Marie 182bf7e7d6
Merge branch 'develop' into feature/approval 2023-10-18 05:40:32 +02:00
Mar0xy cb9bd6a004
add: mark all media from user as NSFW
Closes transfem-org/Sharkey#69
2023-10-18 05:32:47 +02:00
syuilo 6cc02fee99 enhance(backend): improve fanout tl
Resolve #11958
Resolve #12061
2023-10-18 12:26:16 +09:00
syuilo 2a88d8ee2d refactor(backend): rename service 2023-10-18 12:07:18 +09:00
Mar0xy 288fa1143d
upd: display correct `approval_required` value on masto instance endpoint 2023-10-18 04:32:40 +02:00
Mar0xy cab0ec5de1
upd: add `Not Approved` state sorter to Users tab 2023-10-18 03:40:51 +02:00
Mar0xy 32fc540df4
upd: handle email signups properly with approval enabled 2023-10-18 03:21:06 +02:00
taichan f6e1ee1d40
users/notesでDBから参照した際にチャンネル投稿のみ取得される問題を修正 (#12056)
* fix(backend): ユーザーのノート取得でDBにfallbackした際にチャンネルノートのみになる

* Update CHANGELOG

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-10-18 09:55:15 +09:00
woxtu 0bddd0ceae
Remove unnecessary nullish coalescing (#12058) 2023-10-18 09:54:18 +09:00
かっこかり 53099cad5a
fix: `admin/update-meta` が保存できない (#12057)
* Fix: invalid param impressumUrl

* Update CHANGELOG.md
2023-10-18 09:48:49 +09:00
Mar0xy 2f2d88dcfc
add: Require Approval for Signup 2023-10-18 02:41:36 +02:00
Marie 715dea9414
upd: remove cutting off the description on relays 2023-10-17 22:51:05 +02:00
Marie f73e56ca2c
fix: invalid param `impressumUrl` 2023-10-17 19:39:48 +02:00
anatawa12 5a3c6575dd
新規にフォローした人のwithRepliesをtrueにする機能を追加 (#12048)
* feat: add defaultWithReplies to MiUser

* feat: use defaultWithReplies when creating MiFollowing

* feat: update defaultWithReplies from API

* feat: return defaultWithReplies as a part of $i

* feat(frontend): configure defaultWithReplies

* docs(changelog): 新規にフォローした人のをデフォルトでTL二追加できるように

* fix: typo

* style: fix lint failure

* chore: improve UI text

* chore: make optional params of  UserFollowingService.follow() object

* chore: UserFollowingService.follow() accept withReplies

* chore: add withReplies to MiFollowRequest

* chore: process withReplies for follow request

* feat: accept withReplies on 'following/create' endpoint

* feat: store defaultWithReplies in client store

* Revert "feat: return defaultWithReplies as a part of $i"

This reverts commit f2cc4fe6

* Revert "feat: update defaultWithReplies from API"

This reverts commit 95e3cee6

* Revert "feat: add defaultWithReplies to MiUser"

This reverts commit 9f5ab14d7063532de2b049bc2ed40a15658168f5.

* feat: configuring withReplies in import-following

* feat(frontend): configure withReplies

* fix(frontend): incorrectly showRepliesToOthersInTimeline can be shown

* fix(backend): withReplies of following/create not working

* fix(frontend): importFollowing error

* fix: withReplies is not working with follow import

* fix(frontend): use v-model

* style: fix lint

---------

Co-authored-by: Sayamame-beans <61457993+sayamame-beans@users.noreply.github.com>
Co-authored-by: syuilo <syuilotan@yahoo.co.jp>
2023-10-17 20:56:17 +09:00
Mar0xy 68886b9ab5
merge: upstream performance changes & instance silencing 2023-10-16 23:38:21 +02:00
まっちゃてぃー 5efd01ba70
feat: サーバーサイレンス機能を追加 (#12031)
* feat : サーバーサイレンスを追加

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update locale

* Update instance-info.vue

* update misskey-js.api.md

* lint fix

* migration fix

* 既存のものを使うように

* fix

* 色々直した

* Update packages/frontend/src/pages/admin/instance-block.vue

* Update packages/frontend/src/pages/admin/instance-block.vue

* Update packages/frontend/src/components/MkInstanceCardMini.vue

* Update packages/backend/src/core/entities/InstanceEntityService.ts

* Update packages/backend/src/core/entities/InstanceEntityService.ts

* Update packages/backend/src/core/entities/InstanceEntityService.ts

* Update packages/backend/src/core/UserFollowingService.ts

* Update packages/backend/src/core/UserFollowingService.ts

* fix: サイレンスされてるサーバーからの投稿は全部ホームにする

* fix: undefinedでfalseを返すようにした

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-10-16 20:11:27 +09:00
syuilo 3ebed5aa3e feat: local-only antenna
Resolve #11869
2023-10-16 15:06:00 +09:00
syuilo 24437a04d4 fix of 1fa1d31696 2023-10-16 12:00:56 +09:00
syuilo 1fa1d31696 perf(backend): createdAtをidから取得するように & 無駄なDateインスタンスの生成を避けるように 2023-10-16 10:45:22 +09:00
Mar0xy ca428977a5
merge: upstream 2023-10-15 23:36:38 +02:00
syuilo 3f4ee98405
perf(backend): improve streaming api performance (#12033)
* wip

* Update NoteEntityService.ts

* wip

* wip

* wip

* wip
2023-10-15 10:36:22 +09:00
Mar0xy 7e648a255f
upd: Separate quote from boost 2023-10-15 02:16:02 +02:00
Mar0xy 23e0daed4e
upd: fix getting renote for logged-in user 2023-10-14 02:53:52 +02:00
Mar0xy d14b9af93d
chore: lint 2023-10-14 02:05:03 +02:00
Mar0xy 2d31c189d8
add: sponsors 2023-10-14 01:59:09 +02:00
Mar0xy 96d99f04fb
upd: change unrenote function 2023-10-13 22:29:14 +02:00
Mar0xy b4c81eb4ef
upd: make unrenote stream its change 2023-10-13 22:15:35 +02:00
Mar0xy f8f128b347
merge: all upstream changes 2023-10-13 19:01:17 +02:00
syuilo f6ba5cfaf4
merge: timeline 1 2023-10-13 17:58:11 +02:00
syuilo a26d9ea132 enhance(backend): LTLでフォローしているユーザーからの自分への返信が含まれるように 2023-10-11 17:29:24 +09:00
syuilo cf3624a54f fix(backend): users/notesでセンシティブチャンネルの投稿が含まれる場合がある問題を修正 2023-10-11 12:26:07 +09:00
syuilo 7a8d5e5840 enhance: ローカルタイムライン、ソーシャルタイムラインで返信を含むかどうか設定可能に
Resolve #12001
2023-10-11 10:15:44 +09:00
syuilo 854ac95511 fix(backend): センシティブ設定されたチャンネルの投稿をusers/notesで返さないように 2023-10-10 20:06:02 +09:00
syuilo 66940d6cf1 fix(backend): channels/timelineでミュートが効かない問題を修正 2023-10-10 19:07:59 +09:00
かっこかり af1087aed4
Feat:「ファイルの詳細」ページを追加 (#11995)
* (add) ファイルビューア

* Update Changelog

* 既存のAPIを利用

* run api extratctor

* Change i18n

* (add) ページに関する説明を追加

* Update CHANGELOG

* (fix) design, classes
2023-10-10 10:43:43 +09:00
syuilo 9f33ce1cd0 fix of 0bb0c32908 2023-10-10 09:45:40 +09:00
syuilo edf847d966 fix of 0bb0c32908 2023-10-09 21:23:07 +09:00
syuilo 0bb0c32908 enhance(backend): RedisへのTLの構築をListで行うように
#11404
2023-10-09 20:31:39 +09:00
syuilo 7473b2854f fix(backend): users/notesでsinceId指定時にデータベースにフォールバックするように修正 2023-10-09 18:14:38 +09:00
syuilo 6ff98846e6 fix(backend): 「ファイル付きのみ」のTLでファイル無しの新着ノートが表示される
Fix #11939
2023-10-09 17:48:09 +09:00
syuilo 7066d61730 fix 2023-10-09 17:41:54 +09:00
syuilo 0680ea3a78 fix(backend): users/notes で途中までしかページネーションできなくなることがある問題を修正 2023-10-09 16:54:27 +09:00
syuilo 4f20c87186 lint fixes 2023-10-09 13:32:41 +09:00
_ ca07459f5e
fix(backend): ダイレクト投稿がタイムライン上に正常に表示されない問題を修正 (#11993)
* DMをredisにpushするように

* add test

* add CHANGELOG

* Update NoteCreateService.ts

* lint

* ✌️

* 前のバージョンから発生した問題ではないため不要

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-10-09 12:36:25 +09:00
syuilo 457b4cf608 fix(backend): users/notes で 自身の visibility: followers なノートが含まれない問題を修正 2023-10-09 08:54:57 +09:00
かっこかり 4bbfc98883
Feat: タイムライン更新中に広告を挿入 (#11989)
* Feat: タイムライン更新中に広告を挿入

* 翻訳を変更

* Run api extractor

* fix api extractor

* Update locales/ja-JP.yml

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>

* confirm -> mkinfo

* MkInputにmin, maxを指定できるように

* 負の値が指定されたら何もしない

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-10-08 17:56:44 +09:00
syuilo 9240db35f3 perf(backend): improve hybrid-timeline performance 2023-10-08 15:22:43 +09:00
syuilo 8e0fb23068 fix(backend): 同じ種類のTLのストリーミングを複数接続できない問題を修正
Fix #11985
2023-10-08 13:46:02 +09:00
syuilo cd8fda50c8 fix(backend): fix of 8c684d5391 2023-10-08 08:25:37 +09:00
syuilo 04c8a7077f fix of 8c684d5391 2023-10-07 20:27:35 +09:00
syuilo 986623dbdc fix(backend): fix sql error when featured notes is zero 2023-10-07 18:21:16 +09:00
syuilo 8c684d5391 enhance(backend): User TLをRedisにキャッシュされる以前まで遡れるように
#11958
2023-10-07 18:00:56 +09:00
syuilo 69de8cad7c refactor 2023-10-07 17:57:15 +09:00
syuilo fb3338029b refactor 2023-10-07 17:48:10 +09:00
syuilo dc435fb8ee enhance(backend): tweak hashtag trend 2023-10-07 14:05:58 +09:00
syuilo 0fe8c0134c enhance(backend): notes/global-timeline復活 2023-10-07 14:02:05 +09:00
かっこかり 5e8c0deab3
プライバシーポリシー・運営者情報のリンクを追加 (#11925)
* 運営者情報・プライバシーポリシーリンクを追加

* Update Changelog

* Run api extractor

* プライバシーポリシー・利用規約の同意をまとめる

* Update Changelog

* fix lint

* fix

* api extractor

* improve design

* nodeinfoにプライバシーポリシー・運営者情報を追加
2023-10-07 13:13:13 +09:00
syuilo 71edc65d0d enhance(backend): improve hashtags/trend performance 2023-10-07 12:05:17 +09:00
Mar0xy f81d6f8e24
upd: show poll in non-detailed post if poll exists
Closes transfem-org/Sharkey#52
2023-10-06 20:36:28 +02:00
nenohi 11e657bdd7
絵文字重複チェック (#11941)
* 絵文字重複チェック

* アップデート時のチェック

* Update packages/backend/src/core/CustomEmojiService.ts

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>

* Update packages/backend/src/server/api/endpoints/admin/emoji/add.ts

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>

* Update packages/backend/src/server/api/endpoints/admin/emoji/update.ts

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-10-06 21:05:44 +09:00
syuilo a5b6e807bb feat: per user featured notes 2023-10-06 18:30:08 +09:00
syuilo dab205edb8 enhance(backend): improve featured system 2023-10-06 14:24:25 +09:00
Mar0xy 4e64397635
add: profile backgrounds 2023-10-06 02:32:09 +02:00
syuilo e4dcab8671 chore(backend): response isHibernated in admin/show-user 2023-10-05 21:35:23 +09:00
anatawa12 ee483f2dee
Disallow renote of direct note (#11970)
* chore: renoteに関するチェックをまとめる

* fix: ダイレクト投稿をrenoteできる

* fix(frontend): 自分のダイレクト投稿をrenoteできる

* docs(changelog): ダイレクト投稿をリノートできてしまう

* fix lint

* chore(backend): visibilityに関するエラーをApi Errorとして返す
2023-10-05 17:03:50 +09:00
syuilo 2333bdb98a fix(backend): sinceIdやsinceDateを利用してTLを取得することができない
Fix #11961
2023-10-05 10:23:58 +09:00
syuilo 5b00fa6f82 enhance(backend): users/notesでチャンネル投稿を含めるオプション
Resolve #11965
2023-10-05 09:48:45 +09:00
syuilo ca515d5a7e tweak timelines 2023-10-04 16:43:24 +09:00
syuilo b40329887f revert: note editing 2023-10-04 12:05:01 +09:00
Mar0xy 89924b587a
add: speakAsCat extension 2023-10-04 04:35:58 +02:00
syuilo 610b68c8ff tweak 2023-10-04 11:32:33 +09:00
syuilo a40734d417 fix(backend): [2023.10.1.beta-1] [ノート]タブでは見える投稿が[全て]タブに出てこない
Fix #11960
2023-10-04 11:24:46 +09:00
syuilo be81c1a6d6 refactor 2023-10-04 11:15:37 +09:00
syuilo 17b83ff4c1 enhance: TLキャッシュ容量を設定できるように 2023-10-04 08:46:27 +09:00
Mar0xy bf3d493d04
Revert "feat: improve tl performance" 2023-10-03 20:21:26 +02:00
Mar0xy 38e35e1472
merge: upstream 2023-10-03 15:20:49 +02:00
syuilo 6277a5545c
feat: improve tl performance (#11946)
* wip

* wip

* wip

* wip

* wip

* wip

* Update NoteCreateService.ts

* wip

* wip

* wip

* wip

* Update NoteCreateService.ts

* wip

* Update NoteCreateService.ts

* wip

* Update user-notes.ts

* wip

* wip

* wip

* Update NoteCreateService.ts

* wip

* Update timeline.ts

* Update timeline.ts

* Update timeline.ts

* Update timeline.ts

* Update timeline.ts

* wip

* Update timelines.ts

* Update timelines.ts

* Update timelines.ts

* wip

* wip

* wip

* Update timelines.ts

* Update misskey-js.api.md

* Update timelines.ts

* Update timelines.ts

* wip

* wip

* wip

* Update timelines.ts

* wip

* Update timelines.ts

* wip

* test

* Update activitypub.ts

* refactor: UserListJoining -> UserListMembership

* Update NoteCreateService.ts

* wip
2023-10-03 20:26:11 +09:00
dakkar 076b2d4e6c make `drive_file.comment` larger
we can change the 8192 to something else, but 512 is too short ☺
2023-10-02 13:47:35 +01:00
Mar0xy 099b86ff3c
chore: lint 2023-10-01 02:06:04 +02:00
Marie 54578f6965
upd: add MFM to HTML support and Mentions parsing to mastodon api (#33)
* upd: attempt to turn MFM to html on mastodon

* revert: recent change until better implementation later

* chore: remove unused packages

* Update docker.yml

* upd: add MFM to HTML for timelines and status view

* chore: lint

* upd: megalodon resolve urls

* upd: add spliting

* test: local user mention

* test: change local user url in mention

* upd: change check

* test: megalodon changes

* upd: edit resolving of local users

This is starting to drive me nuts

* upd: remove the @ symbol in query

* fix: make renderPerson return host instead of null for local

* upd: change url for local user

* upd: change limit

* upd: add url to output

* upd: add mastodon boolean

* test: test different format

* fix: test of different format

* test: change up resolving

* fix: forgot to provide url

* upd: change lookup function a bit

* test: substring

* test: regex

* upd: remove substr

* test: new regexs

* dirty test

* test: one last attempt for today

* upd: fix build error

* upd: take input from iceshrimp dev

* upd: parse remote statuses

* upd: fix pleroma users misformatted urls

* upd: add uri to normal user

* fix: forgot to push updated types

* fix: resolving broke

* fix: html not converting correctly

* fix: return default img if no banner

* upd: swap out img used for no header, set fallback avatar

* fix: html escaped & and ' symbols

* upd: fix ' converting into 39; and get profile fields

* upd: resolve fields on lookup

---------

Co-authored-by: Amelia Yukii <123300075+Insert5StarName@users.noreply.github.com>
2023-10-01 01:58:06 +02:00
syuilo 392de4df36 enhance: ノートの翻訳機能の利用可否をロールで設定可能に
Resolve #11923
2023-09-30 07:54:11 +09:00
syuilo d92e2b6ae0 Update create.test.ts 2023-09-29 16:41:03 +09:00
syuilo 961f5a0caa fix(backend): fix notes/create validation 2023-09-29 15:14:13 +09:00
syuilo 9771f1c435 enhance: improve moderation log 2023-09-29 13:26:11 +09:00
nenohi 9c448055a3
広告に関する修正(配信中の絞り込み、Create時にMiAdを返すように) (#11913)
* ad/createにて作成したMiAdを返すように

別なツールからアップデート等をする際に必要

* ad/list取得に現在掲載中のオプションを作成

* スイッチで配信中のみを絞れるように

* update CHANGELOG

* エラー修正

* Update packages/frontend/src/pages/admin/ads.vue

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-09-29 12:27:05 +09:00
syuilo b9da1415a5 feat: 通知の受信設定を強化 2023-09-29 11:29:54 +09:00
Mar0xy 4b87753564
Merge branch 'develop' of https://github.com/transfem-org/Sharkey into develop 2023-09-29 00:57:53 +02:00
Mar0xy fc00f08d5b
add: achievement toggle
Closes #16
2023-09-29 00:57:38 +02:00
syuilo 2438c047a7 enhance: 編集されたノートかどうか分かるように 2023-09-28 21:06:14 +09:00
syuilo 408def474b enhance: タイムラインからRenoteを除外するオプションを追加 2023-09-28 12:37:49 +02:00
syuilo 0e7a1ac44e enhance: タイムラインからRenoteを除外するオプションを追加 2023-09-28 12:37:31 +02:00
syuilo 0e0c61e64a enhance: ユーザーページのノート一覧でRenoteを除外できるように 2023-09-28 12:36:27 +02:00
syuilo 19a643ac70 enhance: improve moderation log 2023-09-28 12:35:40 +02:00
syuilo c106db89e1 feat: note edit 2023-09-28 17:21:16 +09:00
syuilo 772d2432b6 enhance: タイムラインからRenoteを除外するオプションを追加 2023-09-28 15:32:47 +09:00
syuilo eb740e2c72 enhance: タイムラインからRenoteを除外するオプションを追加 2023-09-28 11:41:41 +09:00
syuilo ce1218a2b2 enhance: ユーザーページのノート一覧でRenoteを除外できるように 2023-09-28 11:02:01 +09:00
syuilo 055464a624 enhance: improve moderation log 2023-09-28 10:02:05 +09:00
Mar0xy e17dcd7814
upd: rehash misskey passwords with argon2 on login 2023-09-27 21:46:56 +02:00
Insert5StarName dc52209c28 upd: rehash misskey passwords 2023-09-27 21:30:24 +02:00
Mar0xy a12d1c52dd
add: source endpoint for editing through masto api 2023-09-27 14:45:57 +02:00
Mar0xy e32b03a048
upd: return empty history 2023-09-27 14:09:48 +02:00
Mar0xy 7d9262c55a
fix: not being able to only send emojis 2023-09-26 13:40:18 +02:00
Mar0xy d0af17c674
chore: lint 2023-09-26 02:34:42 +02:00
Mar0xy 8595a325ce
merge: upstream 2023-09-26 02:26:30 +02:00
Mar0xy 2b1e6eb180
fix: accidental removal of handler 2023-09-25 22:53:51 +02:00
Mar0xy 5ffcd278be
rm: remove attempt at supporting avatar/banner changing 2023-09-25 22:45:22 +02:00
Mar0xy 0fe5e8738c
upd: attempt to accept file during update 2023-09-25 22:02:33 +02:00
Mar0xy a847e4d5cc
upd: move patch function and make note user always detail 2023-09-25 21:10:49 +02:00
Mar0xy 1e02899de7
upd: add multer handler to update_credentials 2023-09-25 20:59:32 +02:00
Mar0xy d521e95dda
fix: checks 2023-09-25 19:50:22 +02:00
Mar0xy 354937abdd
upd: actually use body 2023-09-25 19:49:30 +02:00
Mar0xy 314122f509
upd: convert masto ids to sharkeyid on media 2023-09-25 19:48:43 +02:00
Mar0xy f1c827b815
add: edit support on masto api 2023-09-25 19:33:55 +02:00
Mar0xy 0d013ff54f
upd: move media put endpoint into main api file 2023-09-25 19:15:55 +02:00
Mar0xy 324cc5509e
fix: adding description not working on media 2023-09-25 18:46:17 +02:00
Mar0xy 2bda4f1768
test: enable error logs for media 2023-09-25 18:35:52 +02:00
Mar0xy 5cca3e81d2
chore: wrong value 2023-09-25 12:49:39 +02:00
Mar0xy 49077bad34
fix: getfeatureduser 2023-09-25 12:48:37 +02:00
Mar0xy 0547940523
chore: use this.baseUrl instead of BASE_URL 2023-09-25 12:46:47 +02:00
Mar0xy aaa3a34d60
chore: swap base_url getting on some endpoints 2023-09-25 12:37:58 +02:00
syuilo bd19d75c9c enhance: improve moderation log 2023-09-25 16:03:43 +09:00
Mar0xy 5aa2b197da
chore: lint 2023-09-25 05:01:50 +02:00
Mar0xy 871407ce53
upd: add new endpoint to mk api, add preferences to masto api 2023-09-25 04:55:11 +02:00
Mar0xy a7778e6425
fix: megalodon reblogged and favourited user info, add createdAt to note 2023-09-25 03:55:21 +02:00
syuilo 5318532a8d enhance: improve moderation log 2023-09-25 10:29:12 +09:00
Mar0xy 1446514442
fix: contact person in masto instance endpoint 2023-09-25 03:26:05 +02:00
Mar0xy 3526880607
fix: get account statuses for local users 2023-09-25 03:23:03 +02:00
Mar0xy 645907851d
fix: text min length is 1 (thanks mk) 2023-09-25 02:48:05 +02:00
Mar0xy df62b3786a
upd: apply host to alot of fields 2023-09-25 02:40:04 +02:00
Mar0xy 1b9897f83b
upd: replace star with heart 2023-09-25 02:04:28 +02:00
Mar0xy 806a76c5ca
fix: text is undefined in masto status api 2023-09-25 02:03:16 +02:00
Mar0xy 3fd2b55406
Revert "test: check old megalodon version"
This reverts commit 89eea5df52.
2023-09-25 01:49:57 +02:00
Mar0xy 89eea5df52
test: check old megalodon version 2023-09-25 01:20:03 +02:00
Mar0xy ead0667320
fix: upload media on masto api 2023-09-25 01:02:16 +02:00
Mar0xy 8f219557d4
upd: megalodon package fix lines, enable error on media 2023-09-24 23:46:02 +02:00
Mar0xy 60b2842203
chore: lint 2023-09-24 23:25:04 +02:00
Mar0xy 37d7a4b604
upd: change parser and fix fetchAccessToken 2023-09-24 23:18:39 +02:00
Mar0xy 30cc0a9b18
fix: oauth headers 2023-09-24 23:01:46 +02:00
Mar0xy ce42cc0e8d
chore: remove ts-ignore comment 2023-09-24 22:57:05 +02:00
Mar0xy 8f997c39c9
chore: fix lint 2023-09-24 22:54:51 +02:00
Mar0xy ad1d3ccb75
chore: change ignore to expect 2023-09-24 22:53:34 +02:00
Mar0xy 96180bb808
add: x-www-form-urlencoded parser 2023-09-24 22:50:59 +02:00
Mar0xy fa30404048
upd: header 2023-09-24 22:13:20 +02:00
Mar0xy 95df69b06c
fix: backend issue 2023-09-24 22:07:41 +02:00
Mar0xy 0758e38237
upd: masto api support more types 2023-09-24 21:45:00 +02:00
Mar0xy 487e397810
upd: also split by + 2023-09-24 21:33:16 +02:00
Mar0xy 250beca901
fix oauth login 2023-09-24 19:15:08 +02:00
Mar0xy b107ff5a1f
chore: lint says const happy 2023-09-24 17:42:31 +02:00
Mar0xy c6c6873984
chore: change const to let 2023-09-24 17:38:31 +02:00
Mar0xy db6dc1b52e
chore: lint and update package name 2023-09-24 17:36:13 +02:00
Mar0xy 410e6515d3
upd: complete status endpoint for masto 2023-09-24 17:10:33 +02:00
Mar0xy 7c3f3390b4
add: status get endpoints to masto api 2023-09-24 16:14:50 +02:00
Mar0xy 55e85fe1c1
upd: import status endpoint into service 2023-09-24 15:42:09 +02:00
Mar0xy 7640985332
add: status to masto endpoints 2023-09-24 15:41:38 +02:00
Mar0xy f1fc1ba4c7
add: timeline endpoints tio masto api 2023-09-24 15:33:13 +02:00
taichan dc8ab01168
fix(backend): お知らせのページネーションが機能しない #11800 (#11890)
* fix(backend): お知らせのページネーションが機能しない #11800

* Update CHANGELOG
2023-09-24 20:08:00 +09:00
Mar0xy 1501ab261d
upd: prettify layout 2023-09-24 12:05:59 +02:00
syuilo cf573add27 fix 2023-09-24 16:24:13 +09:00
syuilo 00659220a5 Update update.ts 2023-09-24 15:51:04 +09:00
syuilo 51546ad1ce fix(backend): Playを非公開にできない
Fix #11884
2023-09-24 15:46:14 +09:00
syuilo 841e6ff901 improve moderation log 2023-09-24 15:40:38 +09:00
Mar0xy 34e6717dab
add: filter endpoint to masto api 2023-09-24 05:35:50 +02:00
Mar0xy 168c041373
add: notification endpoints to masto api 2023-09-24 05:02:36 +02:00
Mar0xy bb2d4b0e09
add: search endpoints to masto api 2023-09-24 04:25:01 +02:00
syuilo 8e5a90589d improve moderation log 2023-09-24 10:57:24 +09:00
syuilo ed983a5baf improve moderation log 2023-09-24 10:46:09 +09:00
syuilo 2ad3b1fd74 improve moderation log 2023-09-24 10:33:30 +09:00
Mar0xy 17efcf6b51
upd: Masto API accounts endpoint finished 2023-09-24 02:48:16 +02:00
Mar0xy afda15260f
upd: megalodon to v7 2023-09-24 01:44:53 +02:00
Mar0xy b4674ce65c
upd: add new endpoints to Masto API 2023-09-24 00:43:28 +02:00
Mar0xy 21015e7df6
add: account endpoint
- Still work in progress
2023-09-24 00:42:59 +02:00
Mar0xy 763d7c3a63
add: timeline endpoint only with the functions for other endpoints 2023-09-24 00:42:03 +02:00
Mar0xy b25e193845
upd: create auth endpoint 2023-09-24 00:41:13 +02:00
Mar0xy 9dfc4dbf02
fix: converter returning sharkeyid wrong 2023-09-24 00:39:33 +02:00
Mar0xy ceffd53d47
fix: spacing 2023-09-23 18:51:57 +02:00
Mar0xy 2375d043d1
add: Megalodon, initial mastodon api 2023-09-23 18:49:47 +02:00
syuilo 19bc9c20a6 improve moderation log 2023-09-23 20:50:02 +09:00
syuilo 10924fd229 fix 2023-09-23 18:47:11 +09:00
syuilo 9e4d3ebe5f
enhance(backend): refine moderation log (#10939)
* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* Update DriveService.ts
2023-09-23 18:28:16 +09:00
syuilo ba6e85482e コミット忘れ 2023-09-23 14:26:06 +09:00
syuilo 8f77350089 enhance: PWAのshort_nameを設定可能に 2023-09-23 12:38:20 +09:00
syuilo cac1c2f1e9 fix(backend): notes/reactionsのページネーションが機能しない 2023-09-23 10:00:38 +09:00
Mar0xy 0da4717983
upd: clicky click on replies 2023-09-22 23:56:00 +02:00
Mar0xy 5d40ca6568
upd: update notes live on feed 2023-09-22 23:44:07 +02:00
Mar0xy 1795195097
fix: update? what update 2023-09-22 22:54:35 +02:00
Mar0xy feec3c302b
upd: add backend for post editing 2023-09-22 21:05:42 +02:00
anatawa12 526b3ae0e4
feat: ユーザを除外できるアンテナ (#11277)
* feat: ユーザを除外できるアンテナ

* feat(backend/api): ユーザを除外できるアンテナの作成・更新

* feat(frontend): ユーザを除外できるアンテナの作成・更新

* docs(changelog): add アンテナで一部のユーザを除外したすべてのノートから受信できるようになりました

* fix: d.ts生成時にexport defaultを生成するように

* fix CHANGELOG.md

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-09-22 16:52:43 +09:00
syuilo c836157edb
enhance: 二要素認証設定時のセキュリティを強化 (#11863)
* enhance: 二要素認証設定時のセキュリティを強化

パスワード入力が必要な操作を行う際、二要素認証が有効であれば確認コードの入力も必要にする

* Update CoreModule.ts

* Update 2fa.ts

* wip

* wip

* Update 2fa.ts

* tweak
2023-09-22 14:12:33 +09:00
Insert5StarName 113a67077e upd: port Listenbrainz 2023-09-22 03:31:59 +02:00
Mar0xy 7111c6c90b
upd: swap bcrypt to argon2, add misskey-js to dev, auto load replies 2023-09-22 00:21:57 +02:00
syuilo e3f151e230 feat: 指定したユーザーの投稿通知
Resolve #11499
2023-09-21 18:48:15 +09:00
syuilo e41619775f feat: プロフィールでのリンク検証
Resolve #11099
2023-09-21 11:58:51 +09:00
syuilo fa13b815ef fix: provide NoSuchNoteError error 2023-09-20 11:43:33 +09:00
syuilo 053da10e94 refactor(backend): update directory structure for models 2023-09-20 11:33:36 +09:00
syuilo c3db55b5b6 fix 2023-09-20 11:29:10 +09:00
syuilo bb0b2df37e refactor(backend): extract clip-related logics to ClipService 2023-09-20 09:33:52 +09:00
syuilo fba08c6310 fix 2023-09-17 14:36:57 +09:00
syuilo f7c6932a83 enhance: 各ノートが被クリップ数を保持するようにし、無意味にnotes/clipsを叩かないように 2023-09-17 10:55:26 +09:00
syuilo 814e28459e enhance(backend): improve server icon setting
Resolve #11481
Resolve #10901
2023-09-16 17:05:17 +09:00
syuilo 6cf466e5d1
update deps (#11820)
* update deps

* fix

* wip

* wip

* wip

* Update docker-compose.yml.example

* Delete reviewer-lottery.yml

* Update RepositoryModule.ts

* wip

* wip

* clean up

* update deps

* wip

* wip
2023-09-15 14:28:29 +09:00
syuilo 42c7aad251 enhance(backend): configure ratelimit for notification creation apis 2023-09-12 15:38:00 +09:00
かっこかり cd6428715e
feat: テスト通知を送信できるようにする (#11810)
* (add) Notification test

* Update Changelog

* (add) backend, frontend impl

* globalEventの名前を明確にする

* Run API Extractor
2023-09-11 14:31:50 +09:00
syuilo 98e40e666c fix 2023-09-11 14:28:50 +09:00
syuilo 74faa01db8
fix 2023-09-11 13:29:24 +09:00
Ebise Lutica 8749716700
enhance: センシティブチャンネルはユーザーのノート一覧から除外 (#11797)
* enhance: センシティブチャンネルはユーザーのノート一覧から除外

* READMEに明記

* Update notes.ts

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-09-10 15:14:31 +09:00
syuilo ff9a65e8fa
feat: passkey support (#11804)
https://github.com/MisskeyIO/misskey/pull/149
2023-09-08 14:05:03 +09:00
Ezekiel Lee af7e129b1e
fix(backend): timeout when querying mentions (#11799) 2023-09-08 08:44:46 +09:00
Sayamame-beans bf303238f0
feat(backend): Webhook設定でsecretを空に出来るように (#11784)
* feat(backend): allow webhook secret to be empty

* Update CHANGELOG.md
2023-09-06 13:02:33 +09:00
syuilo f53cffaeb2 enhance(backend): タイムライン等の有効期限を設定可能に
Resolve #11773
2023-09-05 15:03:50 +09:00
syuilo 1f7a81aae7
update deps (#11764)
* update deps

* node16

* wip

* wip

* wip

* Update test-utils.ts

* wip

* Update tsconfig.json

* wip

* Update package.json

* wip

* Update following.vue

* Update followers.vue

* Update index.vue

* Update share.vue

* Update MkUserPopup.vue

* Update MkPostForm.vue

* wip

* Update MkTokenGenerateWindow.vue

* Update MkPagination.vue

* refactor

* update deps

* update deps

* Update sw.ts

* wip

* wip

* wip

* Update FetchInstanceMetadataService.ts

* Update FetchInstanceMetadataService.ts

* update node

* update deps

* 🎨
2023-09-04 13:33:38 +09:00
syuilo 257c4fccf1
feat: Refine 2fa (#11766)
* wip

* Update 2fa.qrdialog.vue

* Update 2fa.vue

* Update CHANGELOG.md

* tweak

* ✌️
2023-08-28 18:25:31 +09:00
GrapeApple0 70a7800927
プロフィールにその人が作ったPlayの一覧出せるように (#11445)
* プロフィールにその人が作ったPlayの一覧出せるように

* Update CHANGELOG.md

* playの公開範囲を設定できるように

* 間違えて変更してしまったのを修正

* Update packages/frontend/src/pages/flash/flash-edit.vue

* Update packages/frontend/src/pages/flash/flash-edit.vue

* tweak

* Update packages/backend/migration/1690796169261-play-visibility.js

* Update packages/backend/src/models/entities/Flash.ts

* Update packages/backend/src/models/entities/Flash.ts

* Update Flash.ts

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-08-21 20:23:09 +09:00
White-Green f664f941a2
fix: antennas validation (#11469) 2023-08-21 17:33:04 +09:00
woxtu dd1783f984
chore(backend): Resolve `import/no-default-export` rule violations (#11732)
* Disable `import/no-default-export` properly

* Disable `import/no-default-export`
2023-08-17 21:20:58 +09:00
syuilo 792622aead
refactor: prefix Mi for all entities (#11719)
* wip

* wip

* wip

* wip

* Update RepositoryModule.ts

* wip

* wip

* wip

* Revert "wip"

This reverts commit c1c13b37d2aaf3c65bc148212da302b0eb7868bf.
2023-08-16 17:51:28 +09:00
syuilo 9487856495
feat: refine announcement (#11497)
* wip

* Update read-announcement.ts

* wip

* wip

* wip

* Update index.d.ts

* wip

* Create 1691649257651-refine-announcement.js

* wip

* wip

* wip

* wip

* wip

* wip

* Update announcements.vue

* wip

* wip

* Update announcements.vue

* wip

* Update announcements.vue

* wip

* Update misskey-js.api.md

* Update users.ts

* Create MkAnnouncementDialog.stories.impl.ts

* wip

* wip

* Create AnnouncementService.ts
2023-08-13 20:12:29 +09:00
anatawa12 b26e4dc505
fix: muteがapiからのuser list timeline取得で機能しない (#11480) 2023-08-08 13:23:25 +09:00
anatawa12 c5b8766a18
feat: sensitive channel (#11438)
* feat(backend): add isSensitive to Channel

* feat(backend): support isSensitive in channel endpoints

* feat(frontend/channel-editor): support isSensitive in create/edit channel page

* feat(frontend/channel): show sensitive indicator for sensitive channels

* docs(changelog): add チャンネルをセンシティブ指定できるようになりました

* chore: license header for each file

* chore: add isSensitive of channel to Note object
2023-08-05 13:58:31 +09:00
woxtu 8a6791da3f
refactor(backend): Remove unused injections (#11462)
* Remove unused injections

* Remove unused imports
2023-08-05 10:33:00 +09:00
syuilo 2b4c8c9e0f
update deps (#11409)
* update deps

* Update .eslintrc.js

* Update .eslintrc.js

* lint

* lint

* Update update.ts

* update deps

* Update .eslintrc.js
2023-07-31 19:14:20 +09:00
Shun Sakai c2370a1be6
chore: 著作権とライセンスについての情報を各ファイルに追加する (#11348)
* chore: Add the SPDX information to each file

Add copyright and licensing information as defined in version 3.0 of
the REUSE Specification.

* tweak format

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-07-27 14:31:52 +09:00
woxtu cb0fa9a8ab
Use promises API (#11351) 2023-07-27 09:04:19 +09:00
tamaina c1a19ff900
fix(backend): Use OFFSET instead of SKIP when using LIMIT (#11379)
* fix(backend): Use OFFSET instead of SKIP when using LIMIT

* update CHANGELOG.md
2023-07-25 19:21:50 +09:00
syuilo 2cb8e8a748 fix(backend): antennas/notesを叩いてもアンテナの無効化が解除されないことがある問題を修正 2023-07-21 10:09:03 +09:00
meron 2801946226
fix(server): アンテナ再有効の手段にアンテナ設定の更新を追加 (#11036)
* fix(server): アンテナ再有効の手段にアンテナの表示とアンテナ設定の更新を追加

* 無効+Redisも空なアンテナの再有効化手段を antennas/update だけに
2023-07-21 10:06:11 +09:00
Kagami Sascha Rosylight 64c142b1ca
chore(backend): better error message for unsupported attestation (#11333) 2023-07-21 07:49:39 +09:00
syuilo 7d6ea74288 enhance(backend): admin/emoji/addで作成した絵文字を返すように 2023-07-20 17:40:04 +09:00
syuilo 871027fa0c enhance: ユーザーにロールが期限付きでアサインされている場合、その期限をユーザーのモデレーションページで確認できるように
Close #11059
2023-07-20 10:54:41 +09:00
woxtu 8c77153c04
Fix auto-fixable issues (#11314) 2023-07-19 11:27:50 +09:00
Kagami Sascha Rosylight d5f30ecb86
feat(backend): allow disabling cache for sensitive files (#11245)
* feat(backend): allow disabling cache for sensitive files

* Update CHANGELOG.md

* fix storybook

* Update locales/ja-JP.yml

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-07-15 20:12:20 +09:00
woxtu b392f44b81
refactor(backend): Improve UUID generation (#11286)
* Replace with `crypto.randomUUID()`

* Remove uuid
2023-07-15 18:39:38 +09:00
yukineko 02957a1b5d
enhance: 招待機能の改善 (#11195)
* refactor(backend): 招待機能を改修

* feat(backend): 招待コードのcreate/delete/listエンドポイントを追加

* add(misskey-js): エンドポイントと型を追加

* change(backend): metaでinvite関連の情報も返すように

* add(misskey-js): エンドポイントと型を追加

* add(backend): `/endpoints/invite/limit`を追加

* fix: createdByがnullableではなかったのを修正

* fix: relationが取得できていなかった問題を修正

* fix: パラメータを間違えていたのを修正

* feat(client): 招待ページを実装

* change(client): インスタンスメニューの「招待」押した場合に招待ページに飛ぶように変更

* feat: 招待コードをコピーできるように

* change(backend): metaに招待コード発行に関する情報を持たせるのをやめる

* feat: ロールごとに招待コードの発行上限数などを設定できるように

* change(client): 招待コードをコピーしたときにダイアログを出すように

* add: 招待に関する管理者用のエンドポイントを追加

* change(backend): モデレーターであれば作成者以外でも招待コードを削除できるように

* change(backend): admin/invite/listはオフセットでページネーションするように

* feat(client): 招待コードの管理ページを追加

* feat(client): 招待コードのリストをソートできるように

* change: `admin/invite/create`のレスポンスを修正

* fix(client): 有効期限を指定できていなかった問題を修正

* refactor: 必要のない箇所を削除

* perf(backend): use limit() instead of take()

* change(client): 作成ボタンを見た目を変更

* refactor: 招待コードの生成部分を共通化し、コード内に"01OI"のいずれかの文字を含まないように

* fix(client): paginationの仕様が変わっていたので修正

* change(backend): expiresAtパラメータのnullを許容

* change(client): 有効期限を設けないときは日付の入力欄を非表示に

* fix: 自身のポリシーよりもインスタンス側のポリシーが優先表示される問題を修正

* fix: n時間のときに「n時間間」となってしまうのを修正

* fix(backend): ポリシーが途中で変更されたときに作成可能数がマイナス表記になってしまうのを修正

* change(client): 招待コードのユーザー名が不明な理由を表示するように

* update: CHANGELOG.md

* lint

* refactor

* refactor

* tweak ui

* 🎨

* 🎨

* add(backend): indexを追加

* change(backend): indexの追加に伴う変更

* change(client): インスタンスメニューの「招待」の場所を変更

* add(frontend): MkInviteCode用のstorybookを追加

* Update misskey-js.api.md

* fix(misskey-js): InviteのcreatedByの型が間違っていたのを修正

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
Co-authored-by: tamaina <tamaina@hotmail.co.jp>
2023-07-15 09:57:58 +09:00
okayurisotto cf3e39178b
refactor(backend): 存在確認の`findOneBy`を`exist`に置き換え (#11224)
* refactor(backend): 存在確認の`findOneBy`を`exist`に置き換え

* cleanup
2023-07-11 14:58:58 +09:00
nomad e40a0b98e4
fix(frontend): search user with trailing space (#11184)
* fix(frontend): search user with trailing space

* fix(backend): search user with trailing space

* Update search.ts

---------

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
2023-07-08 17:41:52 +09:00
syuilo 081a14d6f3 perf(backend): use limit() instead of take() 2023-07-08 16:53:07 +09:00