summaryrefslogtreecommitdiff
path: root/packages/backend/src/services (follow)
Commit message (Collapse)AuthorAgeFilesLines
* なんかもうめっちゃ変えたsyuilo2022-09-1887-6468/+0
|
* enhance: read theme color nodeinfo (#8977)Johann1502022-07-131-3/+3
| | | | | | | | * provide theme color in nodeinfo metadata * read theme color from nodeinfo Prefer to read the theme color from the nodeinfo since it is more performant than performing selector search on a DOM.
* Fix crash at startup if TensorFlow is not supported (#8984)MeiMei2022-07-121-2/+22
| | | | | | | | | | | * Lazy loading tensorflow * CHANGELOG * CHANGELOG * Check CPU flags * .
* enhance(sw): If receiving a push notification issued more than a day, ignore ↵tamaina2022-07-101-0/+1
| | | | | | | | | | | | | it. (#8980) * enhance(sw): ignore old push notification * :v: * 半日 * !== * 1日
* enhance: make active email validation configurablesyuilo2022-07-091-8/+11
|
* feat: auto nsfw detection (#8840)syuilo2022-07-072-2/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * feat: auto nsfw detection * :v: * Update ja-JP.yml * Update ja-JP.yml * ポルノ判定のしきい値を高めに * エラーハンドリングちゃんとした * Update ja-JP.yml * 感度設定を強化 * refactor * feat: add video support for auto nsfw detection * rename: image -> media * .js * fix: add missing error handling * fix: use valid pathname instead of using filename due to invalid usage * perf(nsfw-detection): decode frames * disable detection of video for some reasons * perf(nsfw-detection): streamify detection process for video * disable disallowUploadWhenPredictedAsPorn option * fix(nsfw-detection): improve reliability * fix(nsfw-detection): use Math.ceil instead of Math.round * perf(nsfw-detection): delete tmp frames after used * fix(nsfw-detection): FSWatcher does not emit ready event * perf(nsfw-detection): skip black frames * refactor: strip exists check * Update package.json * めっちゃ変えた * lint * Update COPYING * オプションで動画解析できるように * Update yarn.lock * Update CHANGELOG.md Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
* Add additional drive capacity change support (#8867)CyberRex2022-07-051-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | * Add additional drive capacity change support * Update packages/backend/src/server/api/endpoints/admin/drive-capacity-override.ts Co-authored-by: Johann150 <johann@qwertqwefsday.eu> * :art: * show instance default capacity in placeholder * fix * update api/drive * fix * remove : * fix lint Co-authored-by: Johann150 <johann@qwertqwefsday.eu> Co-authored-by: tamaina <tamaina@hotmail.co.jp>
* feat: Log user ips (#8872)syuilo2022-07-022-25/+36
| | | | | | | | | | | | | | | | | | | * wip * store ip and headers * Update admin-file.vue * require admin for view ip/headers * IP (recent) 消した * admin必須 * opt in * clean ips periodically * respect logging setting in drive/files/create
* feat: make possible to delete an account by adminsyuilo2022-06-271-0/+23
| | | | Resolve #8830
* refactor: remove duplicate code (#8895)Johann1502022-06-271-2/+2
|
* fix lintsJohann1502022-06-241-1/+0
|
* fix: GenerateVideoThumbnail (#8825)MeiMei2022-06-141-7/+5
| | | | | | | | | | | * fix: GenerateVideoThumbnail * CHANGELOG * fix cleanup * Revert "fix cleanup" This reverts commit d54cf8262ac01a3deb6b8dd7689ec144d4d09ea8.
* fix: missing file name parameter (#8820)Johann1502022-06-131-1/+1
|
* fix(test): make chart tests workingsyuilo2022-06-051-0/+12
|
* use node 16syuilo2022-06-041-3/+5
|
* fix: add id for activitypub follows (#8689)Johann1502022-06-042-6/+16
| | | | | | | | | | | | | | | | | * add id for activitypub follows * fix lint * fix: follower must be local, followee must be remote Misskey will only use ActivityPub follow requests for users that are local and are requesting to follow a remote user. This check is to ensure that this endpoint can not be used by other services or instances. * fix: missing import * render block with id * fix comment
* fix: always remove completed tasks (#8771)Johann1502022-05-311-1/+2
|
* refactor: improve code quality (#8751)Johann1502022-05-291-17/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * remove unnecessary if `Array.prototype.some` already returns a boolean so an if to return true or false is completely unnecessary in this case. * perf: use count instead of find When using `count` instead of `findOneBy`, the data is not unnecessarily loaded. * remove duplicate null check The variable is checked for null in the lines above and the function returns if so. Therefore, it can not be null at this point. * simplify `getJsonSchema` Because the assigned value is `null` and the used keys are only shallow, use of `nestedProperty.set` seems inappropriate. Because the value is not read, the initial for loop can be replaced by a `for..in` loop. Since all keys will be assigned `null`, the condition of the ternary expression in the nested function will always be true. Therefore the recursion case will never happen. With this the nested function can be eliminated. * remove duplicate condition The code above already checks `dragging` and returns if it is truthy. Checking it again later is therefore unnecessary. To make this more obvious the `return` is removed in favour of using an if...else construct. * remove impossible "unknown" time The `ago` variable will always be a number and all non-negative numbers are already covered by other cases, the negative case is handled with `future` so there is no case when `unkown` could be achieved.
* 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
|