chore (API): we still use the word 'renote' in our code/API
This commit is contained in:
parent
09bcbb0ff0
commit
dc53447fa3
3 changed files with 4 additions and 4 deletions
|
@ -44,7 +44,7 @@ export const paramDef = {
|
|||
untilId: { type: "string", format: "misskey:id" },
|
||||
filter: {
|
||||
type: "string",
|
||||
enum: ["boost", "quote"],
|
||||
enum: ["all", "renote", "quote"],
|
||||
nullable: true,
|
||||
default: null,
|
||||
},
|
||||
|
@ -67,7 +67,7 @@ export default define(meta, paramDef, async (ps, user) => {
|
|||
.andWhere("note.renoteId = :renoteId", { renoteId: note.id })
|
||||
.innerJoinAndSelect("note.user", "user");
|
||||
|
||||
if (ps.filter === "boost") {
|
||||
if (ps.filter === "renote") {
|
||||
query.andWhere("note.text IS NULL");
|
||||
}
|
||||
if (ps.filter === "quote") {
|
||||
|
|
|
@ -401,7 +401,7 @@ const renotePagination = {
|
|||
limit: 30,
|
||||
params: {
|
||||
noteId: note.value.id,
|
||||
filter: "boost" as const,
|
||||
filter: "renote" as const,
|
||||
},
|
||||
};
|
||||
const quotePagination = {
|
||||
|
|
|
@ -792,7 +792,7 @@ export type Endpoints = {
|
|||
sinceId?: Note["id"];
|
||||
untilId?: Note["id"];
|
||||
noteId: Note["id"];
|
||||
filter?: "boost" | "quote";
|
||||
filter?: "all" | "renote" | "quote";
|
||||
};
|
||||
res: Note[];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue