summaryrefslogtreecommitdiff
path: root/packages/backend (follow)
Commit message (Collapse)AuthorAgeFilesLines
* fix: always respect instance mutes (#8854)Johann1502022-06-258-73/+71
| | | | | | | | | * fix: muted user query also checks instances This way it can be ensured that the instance mute is used everywhere it is required without checking the whole codebase again. Muted users and muted instances should be used together anyways. * fix lint
* chore(deps): bump jpeg-js from 0.4.1 to 0.4.4 in /packages/backend (#8843)dependabot[bot]2022-06-251-3/+3
| | | | | | | | | | | | | | | Bumps [jpeg-js](https://github.com/eugeneware/jpeg-js) from 0.4.1 to 0.4.4. - [Release notes](https://github.com/eugeneware/jpeg-js/releases) - [Commits](https://github.com/eugeneware/jpeg-js/compare/v0.4.1...v0.4.4) --- updated-dependencies: - dependency-name: jpeg-js dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump undici from 5.4.0 to 5.5.1 in /packages/backend (#8842)dependabot[bot]2022-06-251-3/+3
| | | | | | | | | | | | | | | Bumps [undici](https://github.com/nodejs/undici) from 5.4.0 to 5.5.1. - [Release notes](https://github.com/nodejs/undici/releases) - [Commits](https://github.com/nodejs/undici/compare/v5.4.0...v5.5.1) --- updated-dependencies: - dependency-name: undici dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* feat: ↵syuilo2022-06-241-9/+14
| | | | 管理者が特定ユーザーのアップロードしたファイル一覧を見れるように
* fix lintsJohann1502022-06-244-4/+2
|
* enhance: Redisをioredisに統一してIPv6サポート (#8869)MeiMei2022-06-247-32/+23
| | | | | | | | | | | | | | | | | | | | | | | | | * Use ioredis, Supports IPv6 host https://github.com/misskey-dev/misskey/issues/8862 * Fix import * order * a * i * fix * flushdb * family * CHANGELOG * redis_version Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* refactor: simplify ap/show with DbResolver (#8838)Johann1502022-06-231-99/+33
| | | | | | Using the existing code in DbResolver we can avoid separate code for parsing the URIs in this endpoint. Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* enhance: word mute checks CW (#8873)Johann1502022-06-231-3/+5
|
* tweak clientsyuilo2022-06-212-0/+7
|
* fix(server): faviconUrl of federated instance is missingsyuilo2022-06-212-0/+6
|
* feat: Add Badge Image to Push Notification (#8012)tamaina2022-06-2017-5/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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を戻した * backend/src/web/index.ts * notification-badges * add scripts * change create-notification.ts * 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 * refactor * キャッシュ対策 * Truncate push notification message * fix * クライアントがあったらストリームに接続しているということなので通知しない判定の位置を修正 * components/drive-file-thumbnail.vue * components/drive-select-dialog.vue * components/drive-window.vue * merge * fix * Service Workerのビルドにesbuildを使うようにする * return createEmptyNotification() * fix * fix * i18n.ts * update * :v: * remove ts-loader * fix * fix * enhance: Service Workerを常に登録するように * pollEnded * pollEnded * URLをsw.jsに戻す * clean up * fix lint * changelog * alpha-test * also with twemoji * add isMimeImage function * catch * Colour => Color * char2file => char2filePath * Update autocomplete.vue * remove clone? Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com> Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* Improve: unclip (#8823)futchitwo2022-06-182-0/+59
| | | | | | | | | | | | | | | | | | | | | | | * Refactor clip page to use Composition API * Refactor clip page * Refactor clip page * Refactor clip page * Improve: unclip * Fix unclip * Fix unclip * chore: better type and name * Fix * Fix clipPage vue provider Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* enhance: Improve player detection in URL preview (#8849)MeiMei2022-06-182-5/+5
| | | | | * enhance: Improve player detection in URL preview * CHANGELOG
* fix: render empty note content correctlyJohann1502022-06-161-3/+2
| | | | Instead of coercing to `null`, coercing to an empty string should simplify handling.
* fix: correctly render note textJohann1502022-06-161-1/+1
| | | | Fix a regression from #8787 that was previously fixed in #8440.
* fix: GenerateVideoThumbnail (#8825)MeiMei2022-06-141-7/+5
| | | | | | | | | | | * fix: GenerateVideoThumbnail * CHANGELOG * fix cleanup * Revert "fix cleanup" This reverts commit d54cf8262ac01a3deb6b8dd7689ec144d4d09ea8.
* fix: tmpdir cleanup removes contained files (#8826)Johann1502022-06-141-4/+9
|
* enhance(server): ↵syuilo2022-06-141-1/+1
| | | | モデレーターであってもレートリミットを有効に
* fix: add limit to i/notifications (#8836)tamaina2022-06-141-0/+5
| | | | | | | * fix: add limit to i/notifications * ms * remove ms
* 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
* update depssyuilo2022-06-102-266/+170
|
* 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-053-53/+65
|
* Update .mocharc.jsonsyuilo2022-06-051-1/+1
|
* use node 16syuilo2022-06-043-5/+11
|
* update summalysyuilo2022-06-042-5/+6
|
* fix bugsyuilo2022-06-041-3/+3
|
* fix testsyuilo2022-06-041-1/+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
|