summaryrefslogtreecommitdiff
path: root/packages/backend/src/services (follow)
Commit message (Collapse)AuthorAgeFilesLines
* refactor: temporary files (#8713)Johann1502022-05-252-47/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * simplify temporary files for thumbnails Because only a single file will be written to the directory, creating a separate directory seems unnecessary. If only a temporary file is created, the code from `createTemp` can be reused here as well. * refactor: deduplicate code for temporary files/directories To follow the DRY principle, the same code should not be duplicated across different files. Instead an already existing function is used. Because temporary directories are also create in multiple locations, a function for this is also newly added to reduce duplication. * fix: clean up identicon temp files The temporary files for identicons are not reused and can be deleted after they are fully read. This condition is met when the stream is closed and so the file can be cleaned up using the events API of the stream. * fix: ensure cleanup is called when download fails * fix: ensure cleanup is called in error conditions This covers import/export queue jobs and is mostly just wrapping all code in a try...finally statement where the finally runs the cleanup. * fix: use correct type instead of `any`
* fix: wrong type for isVisibleForMeJohann1502022-05-241-1/+1
|
* fix(activitypub): add authorization checks (#8534)Johann1502022-05-191-0/+5
| | | | | * fix spelling * fix(activitypub): add authorization checks
* enhance: uniform theme color (#8702)Johann1502022-05-191-9/+5
| | | | | | | | | | | | | | | | | | * enhance: make theme color format uniform All newly fetched instance theme colors will be uniformely formatted as hashtag followed by 6 hexadecimal digits. Colors are checked for validity and invalid colors are not handled. * better input validation for own theme color * migration to unify theme color formats Fixes theme colors of other instances as well as the local instance. * add changelog entry Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* fix: Unable to generate video thumbnails (#8696)MeiMei2022-05-191-1/+1
| | | | | * fix: Unable to generate video thumbnails * CHANGELOG
* fix _misskey_content of quote renotes (#8533)Johann1502022-05-011-0/+2
|
* feat: Improve Push Notification (#7667)tamaina2022-04-303-12/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * clean up * ev => data * refactor * clean up * add type * antenna * channel * fix * add Packed type * add PackedRef * fix lint * add emoji schema * add reversiGame * add reversiMatching * remove signin schema (use Signin entity) * add schemas refs, fix Packed type * wip PackedHoge => Packed<'Hoge'> * add Packed type * note-reaction * user * user-group * user-list * note * app, messaging-message * notification * drive-file * drive-folder * following * muting * blocking * hashtag * page * app (with modifying schema) * import user? * channel * antenna * clip * gallery-post * emoji * Packed * reversi-matching * update stream.ts * https://github.com/misskey-dev/misskey/pull/7769#issuecomment-917542339 * fix lint * clean up? * add app * fix * nanka iroiro * wip * wip * fix lint * fix loginId * fix * refactor * refactor * remove follow action * clean up * Revert "remove follow action" This reverts commit defbb416480905af2150d1c92f10d8e1d1288c0a. * Revert "clean up" This reverts commit f94919cb9cff41e274044fc69c56ad36a33974f2. * remove fetch specification * renoteの条件追加 * apiFetch => cli * bypass fetch? * fix * refactor: use path alias * temp: add submodule * remove submodule * enhane: unison-reloadに指定したパスに移動できるように * null * null * feat: ログインするアカウントのIDをクエリ文字列で指定する機能 * null * await? * rename * rename * Update read.ts * merge * get-note-summary * fix * swパッケージに * add missing packages * fix getNoteSummary * add webpack-cli * :v: * remove plugins * sw-inject分離したがテストしてない * fix notification.vue * remove a blank line * disconnect intersection observer * disconnect2 * fix notification.vue * remove a blank line * disconnect intersection observer * disconnect2 * fix * :v: * clean up config * typesを戻した * Update packages/client/src/components/notification.vue Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com> * disconnect * oops * Failed to load the script unexpectedly回避 sw.jsとlib.tsを分離してみた * truncate notification * Update packages/client/src/ui/_common_/common.vue Co-authored-by: syuilo <Syuilotan@yahoo.co.jp> * clean up * clean up * キャッシュ対策 * Truncate push notification message * クライアントがあったらストリームに接続しているということなので通知しない判定の位置を修正 * components/drive-file-thumbnail.vue * components/drive-select-dialog.vue * components/drive-window.vue * merge * fix * Service Workerのビルドにesbuildを使うようにする * return createEmptyNotification() * fix * i18n.ts * update * :v: * remove ts-loader * fix * fix * enhance: Service Workerを常に登録するように * pollEnded * URLをsw.jsに戻す * clean up Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com> Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* enhance: ↵tamaina2022-04-283-35/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ドライブに画像ファイルをアップロードするときオリジナル画像を破棄してwebpublicのみ保持するオプション (#8216) * wip * Update packages/client/src/os.ts Co-authored-by: tamaina <tamaina@hotmail.co.jp> * メニューをComposition API化、switchアイテム追加 クライアントサイド画像圧縮の準備 * メニュー型定義を分離 (TypeScriptの型支援が効かないので) * disabled * make keepOriginal to follow setting value * :v: * fix * fix * :v: * WEBP * aaa * :v: * webp * lazy load browser-image-resizer * rename * rename 2 * Fix * clean up * add comment * clean up * jpeg, pngにもどす * fix * fix name * webpでなくする ただしサムネやプレビューはwebpのまま (テスト) * 動画サムネイルはjpegに * エラーハンドリング * :v: * v2.2.1-misskey-beta.2 * browser-image-resizer#v2.2.1-misskey.1 * :v: * fix alert * update browser-image-resizer to v2.2.1-misskey.2 * lockfile Co-authored-by: mei23 <m@m544.net> Co-authored-by: MeiMei <30769358+mei23@users.noreply.github.com>
* fix: Promises -> Promise (#8545)Johann1502022-04-253-3/+3
|
* refactor: use structuredClone for deep clonesyuilo2022-04-231-1/+1
|
* await promises (#8519)Johann1502022-04-193-19/+15
|
* refactorsyuilo2022-04-171-4/+4
|
* improve webhooksyuilo2022-04-035-20/+10
|
* fix typessyuilo2022-04-031-5/+6
|
* chore: fix lintsyuilo2022-04-032-3/+3
|
* feat: Webhook (#8457)syuilo2022-04-025-7/+99
| | | | | | | | | | | * feat: introduce webhook * wip * wip * wip * Update CHANGELOG.md
* limit federation of reactions on direct notes (#8448)Johann1502022-03-271-1/+10
|
* perf(server): use cached user info in getUserFromApIdsyuilo2022-03-262-4/+4
|
* refactor: migrate to typeorm 3.0 (#8443)syuilo2022-03-2641-146/+155
| | | | | | | | | | | | | | | | | | | | | | | * wip * wip * wip * Update following.ts * wip * wip * wip * Update resolve-user.ts * maxQueryExecutionTime * wip * wip
* .jssyuilo2022-03-252-2/+2
|
* perf(server): refactor and performance improvementssyuilo2022-03-259-14/+75
|
* Resolve #7208 (#7226)Ehsan Javadynia2022-03-221-0/+4
| | | add decrement replies count on delete note and a test for that
* perf(server): disable some antenna features to improve performancesyuilo2022-03-221-14/+5
|
* perf(server): reduce db querysyuilo2022-03-211-11/+27
|
* Fix: "Adding email to profile ends in error" (#8405)dogcraft2022-03-141-1/+1
|
* fix federation chartsyuilo2022-03-082-9/+29
|
* delete needless instance drive columnssyuilo2022-03-073-6/+0
|
* feat: add active to federation chartsyuilo2022-03-072-1/+9
|
* feat: アンケート終了通知syuilo2022-03-061-0/+10
| | | | Resolve #4664
* fix query errorsyuilo2022-03-041-3/+3
|
* enhance(chart): better federation pub/sub calculationsyuilo2022-03-041-1/+14
|
* fix federation chart pubsubsyuilo2022-03-041-1/+1
|
* fix esmsyuilo2022-03-013-3/+3
|
* refactor: Use ESM (#8358)syuilo2022-02-2784-582/+494
| | | | | | | | | | | | | | | * wip * wip * fix * clean up * Update tsconfig.json * Update activitypub.ts * wip
* Merge branch 'develop' of https://github.com/misskey-dev/misskey into developsyuilo2022-02-231-6/+12
|\
| * fix: also recognize "shortcut icon" favicon (#8220)Johann1502022-02-231-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * also recognize "shortcut icon" favicon Not using querySelector for this because it uses jsdom which might be slower. Reversing the order because WHATWG says the last appropriate link should be used. * also fetchIconUrl * br * improve readability * fix * フォールバックにhrefの評価を含める * fix val name * 将来的な拡張を考えたコードにした Co-authored-by: tamaina <tamaina@hotmail.co.jp> Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* | feat: add pub & sub item for federation chartsyuilo2022-02-232-1/+14
|/
* SchemaTypeの型計算量を削減 (#8332)tamaina2022-02-191-2/+2
| | | | | | | | | | | | | * schema typeの型計算量を削減 * reduce some type error * wip * fix * clean up * more shrink
* refacator: fix typwsyuilo2022-02-191-1/+1
|
* refactor: use ajv instead of cafy (#8324)syuilo2022-02-191-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * wip * wip * Update abuse-user-reports.ts * Update files.ts * Update list-remote.ts * Update list.ts * Update show-users.ts * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * Update update.ts * Update search.ts * Update reactions.ts * Update search.ts * wip * wip * wip * wip * Update update.ts * Update relation.ts * Update available.ts * wip * wip * wip * Update packages/backend/src/server/api/define.ts Co-authored-by: Johann150 <johann.galle@protonmail.com> * Update define.ts * Update define.ts * typo * wip * wip * wip * wip * wip * wip * wip * wip * Update update.ts * wip * Update signup.ts * Update call.ts * minimum for limit * type * remove needless annotation * wip * Update signup.ts * wip * wip * fix * Update create.ts Co-authored-by: Johann150 <johann.galle@protonmail.com>
* refactor: better getChart result typesyuilo2022-02-181-2/+14
|
* refactor: fix typessyuilo2022-02-131-4/+4
|
* refactor: fix typessyuilo2022-02-131-63/+72
|
* enhance: improve federation chartsyuilo2022-02-1019-37/+128
|
* fix(server): ↵syuilo2022-02-091-0/+4
| | | | チャートのcleanでエラーが出る可能性がある問題を修正
* fix(server): チャートのresyncでエラーが出る問題を修正syuilo2022-02-091-0/+4
| | | | Fix #8274
* feat: introduce intersection calculation of chartssyuilo2022-02-096-7/+80
|
* feat: improve federation chartsyuilo2022-02-082-2/+5
|
* feat: ↵syuilo2022-02-086-0/+7
| | | | notes/instance/perUserNotesチャートに添付ファイル付きノートの数を追加
* chore: remove unused codesyuilo2022-02-081-10/+0
|