summaryrefslogtreecommitdiff
path: root/packages/backend/src/remote/activitypub/renderer (follow)
Commit message (Collapse)AuthorAgeFilesLines
* なんかもうめっちゃ変えたsyuilo2022-09-1830-714/+0
|
* リモートユーザーを正しくブロックできるように修正す ↵xianon2022-07-221-1/+1
| | | | (#9027)
* chore: fix lint errors (#8981)yzhe8192022-07-101-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.
* enhance(federation): use ActivityPub defined property in favour of ↵Johann1502022-06-101-0/+4
| | | | | | | proprietary property. (#8787) * add activitypub `source` property * parse MFM from new `source` attribute
* 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: correctly render empty note text (#8746)Johann1502022-06-031-3/+3
| | | | | | | | | | | | | | | 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.
* refactorsyuilo2022-04-171-8/+8
|
* refactor: fix typesyuilo2022-04-171-1/+1
|
* refactor: migrate to typeorm 3.0 (#8443)syuilo2022-03-264-17/+18
| | | | | | | | | | | | | | | | | | | | | | | * wip * wip * wip * Update following.ts * wip * wip * wip * Update resolve-user.ts * maxQueryExecutionTime * wip * wip
* Use unique id for Undo (#8434)MeiMei2022-03-221-0/+2
|
* perf(server): reduce db querysyuilo2022-03-211-3/+1
|
* refactor: Use ESM (#8358)syuilo2022-02-2727-92/+92
| | | | | | | | | | | | | | | * wip * wip * fix * clean up * Update tsconfig.json * Update activitypub.ts * wip
* refactorsyuilo2022-02-032-2/+9
|
* 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-211-1/+1
|
* 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>
* fix lintsyuilo2021-12-0922-39/+39
|
* fix for lintsyuilo2021-11-131-1/+1
|
* fix lint errorssyuilo2021-11-121-1/+1
|
* refactoringsyuilo2021-11-1229-0/+677
Resolve #7779