Skip to content

Commit

Permalink
docs(routes/misskey): fix documentation formatting for misskey home t…
Browse files Browse the repository at this point in the history
…imeline (DIYgod#18271)

* feat(route): add misskey home timeline

* Update lib/routes/misskey/home-timeline.ts

Co-authored-by: Tony <[email protected]>

* Merge remote-tracking branch 'head/master'

* feat(route/misskey): Enhance user timeline with simplifyAuthor parameter and update replyToAuthor in utils

* docs(routes/misskey): fix documentation formatting for misskey home timeline

---------
  • Loading branch information
HanaokaYuzu authored Feb 3, 2025
1 parent 72f78e2 commit ecdacdd
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions lib/routes/misskey/home-timeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ export const route: Route = {
parameters: {
site: 'instance address, domain only, without `http://` or `https://` protocol header',
routeParams: `
| Key | Description | Accepted Values | Default |
| -------------------- | --------------------------------------- | --------------- | ------- |
| limit | Number of notes to return | integer | 10 |
| withFiles | Only return notes containing files | 0/1/true/false | false |
| withRenotes | Include renotes in the timeline | 0/1/true/false | true |
| allowPartial | Allow partial results | 0/1/true/false | true |
| simplifyAuthor | Simplify author field in feed items | 0/1/true/false | true |
| Key | Description | Accepted Values | Default |
| -------------------- | --------------------------------------- | --------------- | ------- |
| limit | Number of notes to return | integer | 10 |
| withFiles | Only return notes containing files | 0/1/true/false | false |
| withRenotes | Include renotes in the timeline | 0/1/true/false | true |
| allowPartial | Allow partial results | 0/1/true/false | true |
| simplifyAuthor | Simplify author field in feed items | 0/1/true/false | true |
Note: If \`withFiles\` is set to true, renotes will not be included in the timeline regardless of the value of \`withRenotes\`.
Note: If \`withFiles\` is set to true, renotes will not be included in the timeline regardless of the value of \`withRenotes\`.
Examples:
- /misskey/timeline/home/misskey.io/limit=20&withFiles=true
- /misskey/timeline/home/misskey.io/withRenotes=false
Examples:
- /misskey/timeline/home/misskey.io/limit=20&withFiles=true
- /misskey/timeline/home/misskey.io/withRenotes=false
`,
},
features: {
Expand Down Expand Up @@ -55,11 +55,9 @@ export const route: Route = {
name: 'Home Timeline',
maintainers: ['HanaokaYuzu'],
handler,
description: `
::: warning
This route is only available for self-hosted instances.
:::
`,
description: `::: warning
This route is only available for self-hosted instances.
:::`,
};

async function handler(ctx) {
Expand Down

0 comments on commit ecdacdd

Please sign in to comment.