summaryrefslogtreecommitdiff
path: root/packages/backend/src/remote/activitypub (follow)
Commit message (Collapse)AuthorAgeFilesLines
* なんかもうめっちゃ変えたsyuilo2022-09-1877-4307/+0
|
* リモートユーザーを正しくブロックできるように修正す ↵xianon2022-07-221-1/+1
| | | | (#9027)
* chore: fix lint errors (#8981)yzhe8192022-07-102-2/+2
|
* fix lintsJohann1502022-06-241-1/+1
|
* 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.
* 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
* fix bugsyuilo2022-06-041-3/+3
|
* fix: add id for activitypub follows (#8689)Johann1502022-06-042-8/+19
| | | | | | | | | | | | | | | | | * 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.
* refactor: improve code quality (#8751)Johann1502022-05-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* chore: remove unused importsJohann1502022-05-281-3/+3
|
* fix: wrong type for isVisibleForMeJohann1502022-05-241-1/+1
|
* fix(activitypub): add authorization checks (#8534)Johann1502022-05-193-11/+15
| | | | | * fix spelling * fix(activitypub): add authorization checks
* refactorsyuilo2022-04-171-8/+8
|
* refactorsyuilo2022-04-171-10/+22
| | | | Resolve #8467
* refactor: fix typesyuilo2022-04-172-2/+2
|
* refactor: fix typesyuilo2022-04-172-6/+6
|
* refactor: fix typesyuilo2022-04-172-3/+3
|
* refactor: fix typesyuilo2022-04-171-4/+4
|
* lintsyuilo2022-04-161-13/+13
|
* fix typesyuilo2022-04-031-1/+1
|
* fix typessyuilo2022-04-031-1/+2
|
* chore: fix lintsyuilo2022-04-035-7/+7
|
* fix syntax errorsyuilo2022-04-021-1/+1
|
* fix(federation): avoid duplicate activity delivery (#8429)Johann1502022-04-021-27/+36
| | | | | | | * prefer shared inbox over individual inbox * no new shared inbox for direct recipes * fix type error
* perf(server): use cached user info in getUserFromApIdsyuilo2022-03-262-8/+8
|
* refactorsyuilo2022-03-261-12/+12
|
* perf(server): improve deliver performancesyuilo2022-03-261-7/+18
|
* refactor: migrate to typeorm 3.0 (#8443)syuilo2022-03-2618-52/+53
| | | | | | | | | | | | | | | | | | | | | | | * wip * wip * wip * Update following.ts * wip * wip * wip * Update resolve-user.ts * maxQueryExecutionTime * wip * wip
* perf(server): refactor and performance improvementssyuilo2022-03-2534-106/+134
|
* recognize null in _misskey_content for notes (#8440)Johann1502022-03-231-1/+1
|
* Use unique id for Undo (#8434)MeiMei2022-03-221-0/+2
|
* perf(server): reduce db querysyuilo2022-03-211-3/+1
|
* perf(server): reduce db querysyuilo2022-03-201-3/+3
|
* リレーが動作するように修正する (#8396)xianon2022-03-121-1/+1
|
* fix esmsyuilo2022-03-014-4/+4
|
* fix esmsyuilo2022-03-011-5/+5
|
* Fix avatar/banner proxy (#8346)tamaina2022-02-271-16/+0
| | | | | | | | | | | | | | | | | | | | * Fix avatar/banner proxy Co-authored-by: mei23 <m@m544.net> * use getAvatarUrl * fix * join avatar and banner to improve performance * join * Update hybrid-timeline.ts * fix Co-authored-by: mei23 <m@m544.net> Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* refactor: Use ESM (#8358)syuilo2022-02-2770-366/+366
| | | | | | | | | | | | | | | * wip * wip * fix * clean up * Update tsconfig.json * Update activitypub.ts * wip
* refacator: fix typwsyuilo2022-02-191-1/+1
|
* feat: Option to show replies in timeline (rebase #7685) (#8202)nullobsi2022-02-061-0/+1
| | | | | * Add an option for timeline replies. Credit to Emilis (puffaboo) * update db on request
* refactorsyuilo2022-02-043-7/+12
|
* refactorsyuilo2022-02-031-2/+2
|
* refactorsyuilo2022-02-032-2/+9
|
* refactor, enhance: ドライブ引数のオブジェクト化, ↵MeiMei2022-01-231-3/+9
| | | | | | | | | | | 追加時のcomment指定 (#8180) * refactor: ドライブの引数をオブジェクト化する Resolve #8177 * Resolve #8181 * fix * archivePath
* Unifying Misskey-specific IRIs in JSON-LD `@context` Resolve #8116 (#8178)MeiMei2022-01-231-1/+1
| | | | | * Unifying Misskey-specific IRIs in JSON-LD `@context` Resolve #8116 * CHANGELOG
* enhance: convert svg to png of custom emojissyuilo2022-01-212-4/+6
|
* enhance: Forward report (#8001)Johann1502022-01-211-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * implement sending AP Flag object Optionally allow a user to select to forward a report about a remote user to the other instance. This is added in a backwards-compatible way. * add locale string * forward report only for moderators * add switch to moderator UI to forward report * fix report note url * return forwarded status from API apparently forgot to carry this over from my testing environment * object in Flag activity has to be an array For correct interoperability with Pleroma the "object" property of the Flag activity has to be an array. This array will in the future also hold the link to respective notes, so it makes sense to correct this on our side. * Update get-note-menu.ts Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>