chore: remove unimplemented excludeNsfw (#12520)

This commit is contained in:
anatawa12 2023-12-02 12:05:53 +09:00 committed by GitHub
parent b37e8ffa69
commit b6b838416d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 0 additions and 5 deletions

View file

@ -48,7 +48,6 @@ export const paramDef = {
withFiles: { type: 'boolean', default: false }, withFiles: { type: 'boolean', default: false },
withRenotes: { type: 'boolean', default: true }, withRenotes: { type: 'boolean', default: true },
withReplies: { type: 'boolean', default: false }, withReplies: { type: 'boolean', default: false },
excludeNsfw: { type: 'boolean', default: false },
limit: { type: 'integer', minimum: 1, maximum: 100, default: 10 }, limit: { type: 'integer', minimum: 1, maximum: 100, default: 10 },
sinceId: { type: 'string', format: 'misskey:id' }, sinceId: { type: 'string', format: 'misskey:id' },
untilId: { type: 'string', format: 'misskey:id' }, untilId: { type: 'string', format: 'misskey:id' },

View file

@ -53,7 +53,6 @@ export const paramDef = {
sinceDate: { type: 'integer' }, sinceDate: { type: 'integer' },
untilDate: { type: 'integer' }, untilDate: { type: 'integer' },
withFiles: { type: 'boolean', default: false }, withFiles: { type: 'boolean', default: false },
excludeNsfw: { type: 'boolean', default: false },
}, },
required: ['userId'], required: ['userId'],
} as const; } as const;

View file

@ -89,7 +89,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
api("users/notes", { api("users/notes", {
userId: props.user.id, userId: props.user.id,
fileType: image, fileType: image,
excludeNsfw: defaultStore.state.nsfw !== "ignore",
limit: 10 limit: 10
}).then((notes) => { }).then((notes) => {
for (const note of notes) { for (const note of notes) {
@ -198,7 +197,6 @@ const _sfc_main = defineComponent({
api("users/notes", { api("users/notes", {
userId: props.user.id, userId: props.user.id,
fileType: image, fileType: image,
excludeNsfw: defaultStore.state.nsfw !== "ignore",
limit: 10 limit: 10
}).then(notes => { }).then(notes => {
for (const note of notes) { for (const note of notes) {

View file

@ -64,7 +64,6 @@ onMounted(() => {
os.api('users/notes', { os.api('users/notes', {
userId: props.user.id, userId: props.user.id,
withFiles: true, withFiles: true,
excludeNsfw: defaultStore.state.nsfw !== 'ignore',
limit: 15, limit: 15,
}).then(notes => { }).then(notes => {
for (const note of notes) { for (const note of notes) {