mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-23 09:33:09 +02:00
chore: remove unimplemented excludeNsfw (#12520)
This commit is contained in:
parent
b37e8ffa69
commit
b6b838416d
4 changed files with 0 additions and 5 deletions
|
@ -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' },
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue