summaryrefslogtreecommitdiff
path: root/packages/backend/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* fix(docs): use correct description propertyJohann1502022-06-141-5/+2
|
* fix: remove unused parameterJohann1502022-06-141-1/+1
|
* lint fixessyuilo2022-06-1490-201/+201
|
* fix: missing file name parameter (#8820)Johann1502022-06-131-1/+1
|
* fix: some fixes of multiple notification read (#8819)tamaina2022-06-122-1/+7
| | | | | | | * fix: limit multiple notification read * fix * fix
* chore: synchronize visibility checks (#8687)Johann1502022-06-112-6/+9
| | | | | | | | | | | | | | * reuse single meId parameter * unify code style Use template string to avoid having to use escaped quote marks. * fix: follower only notes are visible to mentioned users This synchronizes the visibility rules with the Notes.isVisibleForMe method from packages/backend/src/models/repositories/note.ts * add comment
* Merge branch 'develop' of https://github.com/misskey-dev/misskey into developsyuilo2022-06-1052-3/+244
|\
| * enhance(federation): use ActivityPub defined property in favour of ↵Johann1502022-06-103-3/+20
| | | | | | | | | | | | | | proprietary property. (#8787) * add activitypub `source` property * parse MFM from new `source` attribute
| * enhance: improve documentation for `/users/` endpoints (#8790)Johann1502022-06-1049-0/+224
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * docs: category & description for reset password * docs: category & description for testing * docs: descriptions for groups endpoints * docs: descriptions for drive file endpoints * docs: descriptions for sw endpoints * docs: descriptions for user list endpoints * docs: descriptions & result type for gallery posts * docs: descriptions & result type for user endpoints * docs: add return type for stats
* | chore: tweak logosyuilo2022-06-101-3/+1
|/
* refactor: use awaitAll to reduce duplication (#8791)Johann1502022-06-081-61/+25
| | | | | | | * refactor: use awaitAll to reduce duplication * fix lint * fix typo
* fix(test): make chart tests workingsyuilo2022-06-052-1/+21
|
* use node 16syuilo2022-06-043-5/+11
|
* fix bugsyuilo2022-06-041-3/+3
|
* fix: add id for activitypub follows (#8689)Johann1502022-06-045-15/+63
| | | | | | | | | | | | | | | | | * 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: ensure resolver does not fetch local resources via HTTP(S) (#8733)Johann1502022-06-042-50/+115
| | | | | | | | | | | | | | | | | | | | | * refactor: parseUri types and checks The type has been refined to better represent what it actually is. Uses of parseUri are now also checking the parsed object type before resolving. * cannot resolve URLs with fragments * also take remaining part of URL into account Needed for parsing the follows URIs. * Resolver uses DbResolver for local * remove unnecessary use of DbResolver Using DbResolver would mean that the URL is parsed and handled again. This duplicated processing can be avoided by querying the database directly. * fix missing property name
* fix: correctly render empty note text (#8746)Johann1502022-06-032-7/+5
| | | | | | | | | | | | | | | Ensure that the _misskey_content attribute will always exist. Because the API endpoint does not require the existence of the `text` field, that field may be `undefined`. By using `?? null` it can be ensured that the value is at least `null`. Furthermore, the rendered HTML of a note with empty text will also be the empty string. From git blame it seems that this behaviour was added because of a Mastodon bug that might have previously existed. Hoever, this seems to be no longer the case as I can find mastodon posts that have empty content. The code could be made a bit more succinct by using the null coercion operator.
* User moderation details (#8762)PikaDude2022-06-031-5/+37
| | | | | | | | | | | | | | | | | * add more user details for admins to see * fix some issues * small style fix as suggested by Johann150 Co-authored-by: Johann150 <johann@qwertqwefsday.eu> * fix Co-authored-by: Johann150 <johann@qwertqwefsday.eu> Co-authored-by: Johann150 <johann@qwertqwefsday.eu>
* Merge branch 'develop' of https://github.com/misskey-dev/misskey into developsyuilo2022-06-036-10/+21
|\
| * fix(mfm): remove duplicate br tag/newline (#8616)Johann1502022-05-311-0/+3
| |
| * fix: always remove completed tasks (#8771)Johann1502022-05-312-1/+4
| |
| * Fix IP address rate limit (#8758)MeiMei2022-05-313-9/+14
| | | | | | | | | | | | | | * Fix IP address rate limit * CHANGELOG * Tune getIpHash
* | fix(test): reset redis in e2e testsyuilo2022-06-031-0/+2
|/ | | | #7986
* fix: add missing importJohann1502022-05-291-1/+1
| | | | fix #8756
* refactor: improve code quality (#8751)Johann1502022-05-294-69/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* fix(client): Vite related boot mechanism revision (#8753)tamaina2022-05-293-17/+14
| | | | | | | | | * preload app css * remove salt * APP_FETCH_FAILED error * set max-age to 15s
* preload app css (#8752)tamaina2022-05-293-15/+23
|
* chore: remove unused importsJohann1502022-05-281-3/+3
|
* fix: validate text is not emptyJohann1502022-05-281-1/+1
| | | fix #8747
* enhance: replace signin CAPTCHA with rate limit (#8740)Johann1502022-05-284-53/+64
| | | | | | | | | | | | | | | | | | | | | | | * enhance: rate limit works without signed in user * fix: make limit key required for limiter As before the fallback limiter key will be set from the endpoint name. * enhance: use limiter for signin * Revert "CAPTCHA求めるのは2fa認証が無効になっているときだけにした" This reverts commit 02a43a310f6ad0cc9e9beccc26e51ab5b339e15f. * Revert "feat: make captcha required when signin to improve security" This reverts commit b21b0580058c14532ff3f4033e2a9147643bfca6. * fix undefined reference * fix: better error message * enhance: only handle prefix of IPv6
* fix(docs): correct information for drive upload (#8736)Johann1502022-05-271-2/+14
|
* use http-signature module that supports hs2019 (#8635)Johann1502022-05-265-5/+5
|
* fix: assume remote users are following each other (#8734)Johann1502022-05-251-9/+15
| | | | | | Misskey does not know if two remote users are following each other. Because ActivityPub actions would otherwise fail on followers only notes, we have to assume that two remote users are following each other when an interaction about a remote note occurs.
* refactor: temporary files (#8713)Johann1502022-05-2512-331/+297
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-242-2/+2
|
* refactorsyuilo2022-05-211-4/+3
|
* fix(activitypub): add authorization checks (#8534)Johann1502022-05-194-11/+20
| | | | | * fix spelling * fix(activitypub): add authorization checks
* enhance: uniform theme color (#8702)Johann1502022-05-192-10/+6
| | | | | | | | | | | | | | | | | | * 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
* chore(client): tweak loading spinner designsyuilo2022-05-192-17/+23
|
* enhance: Perform port diagnosis at startup only when Listen fails (#8698)MeiMei2022-05-192-32/+26
| | | | | | | | | * Change port check * Comment: disableClustering * CHANGELOG * Smart message
* fix: postgres type errorJohann1502022-05-151-1/+1
| | | | Fix a bug introduced in #8659. Solution was already tested there.
* CAPTCHA求めるのは2fa認証が無効になっているときだけにしたsyuilo2022-05-151-12/+12
| | | | 2faのトークンは期限付きだから、CAPTCHA解いてる間に期限切れになる
* feat: make captcha required when signin to improve securitysyuilo2022-05-151-4/+21
|
* fix: ↵tamaina2022-05-141-1/+8
| | | | | | | ユーザー検索で、クエリがusernameの条件を満たす場合はusernameもLIKE検索するように (#8644) * Fix #8643 * 部分一致にする
* test: e2eテストがCIで失敗していた問題をいくつか修正 (#8642)iwata2022-05-141-3/+10
| | | | | | | * test: indexeddbをテスト毎に初期化するように * fix: metaが無いときにfetch-metaを同時に呼ぶと死ぬことがある問題を修正 * test: ログイン後のクライアント側処理を待たずにリロードされてログイン出来ないことがあったのを修正
* fix: keep file order (#8659)Johann1502022-05-141-4/+8
|
* enhance: Display TOTP Register URLsyuilo2022-05-141-3/+5
| | | | | | Close #7261 Co-Authored-By: tamaina <tamaina@hotmail.co.jp>
* perf: fix caching (#8660)Johann1502022-05-141-0/+1
| | | | | | The cache implementation did previously not store the results of the computation and was thus not a cache at all. This can cause a significant number of database queries each time someone with a large number of followers does something that causes an activity to be federated.
* chore: synchronize code and database schema (#8577)Johann1502022-05-0511-27/+19
| | | | | | | | | | * chore: remove default null null is always the default value if a table column is nullable, and typeorm's @Column only accepts strings for default. * chore: synchronize code with database schema * chore: sync generated migrations with code