chore (API): we still use the word 'renote' in our code/API

This commit is contained in:
naskya 2024-04-22 05:42:31 +09:00
parent 09bcbb0ff0
commit dc53447fa3
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C
3 changed files with 4 additions and 4 deletions

View file

@ -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") {

View file

@ -401,7 +401,7 @@ const renotePagination = {
limit: 30,
params: {
noteId: note.value.id,
filter: "boost" as const,
filter: "renote" as const,
},
};
const quotePagination = {

View file

@ -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[];
};