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