summaryrefslogtreecommitdiff
path: root/packages/backend/src/server
diff options
context:
space:
mode:
authorMar0xy <marie@kaifa.ch>2023-11-17 15:05:58 +0100
committerMar0xy <marie@kaifa.ch>2023-11-17 15:05:58 +0100
commit55ef4c4d93d02e5c02f776e8dbfeb0a66e7d5bbd (patch)
treebf5c32c469bcd4385c6cbd7774992b8a91802dae /packages/backend/src/server
parentfix: pinned being set to null causing errors in masto api (diff)
downloadsharkey-55ef4c4d93d02e5c02f776e8dbfeb0a66e7d5bbd.tar.gz
sharkey-55ef4c4d93d02e5c02f776e8dbfeb0a66e7d5bbd.tar.bz2
sharkey-55ef4c4d93d02e5c02f776e8dbfeb0a66e7d5bbd.zip
upd: completely change handling of `indexable`
Diffstat (limited to 'packages/backend/src/server')
-rw-r--r--packages/backend/src/server/api/endpoints/i/update.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/backend/src/server/api/endpoints/i/update.ts b/packages/backend/src/server/api/endpoints/i/update.ts
index 78c32c5352..394a122169 100644
--- a/packages/backend/src/server/api/endpoints/i/update.ts
+++ b/packages/backend/src/server/api/endpoints/i/update.ts
@@ -177,7 +177,7 @@ export const paramDef = {
autoAcceptFollowed: { type: 'boolean' },
noCrawle: { type: 'boolean' },
preventAiLearning: { type: 'boolean' },
- isIndexable: { type: 'boolean' },
+ noindex: { type: 'boolean' },
isBot: { type: 'boolean' },
isCat: { type: 'boolean' },
speakAsCat: { type: 'boolean' },
@@ -279,7 +279,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
if (typeof ps.isExplorable === 'boolean') updates.isExplorable = ps.isExplorable;
if (typeof ps.hideOnlineStatus === 'boolean') updates.hideOnlineStatus = ps.hideOnlineStatus;
if (typeof ps.publicReactions === 'boolean') profileUpdates.publicReactions = ps.publicReactions;
- if (typeof ps.isIndexable === 'boolean') updates.isIndexable = ps.isIndexable;
+ if (typeof ps.noindex === 'boolean') updates.noindex = ps.noindex;
if (typeof ps.isBot === 'boolean') updates.isBot = ps.isBot;
if (typeof ps.carefulBot === 'boolean') profileUpdates.carefulBot = ps.carefulBot;
if (typeof ps.autoAcceptFollowed === 'boolean') profileUpdates.autoAcceptFollowed = ps.autoAcceptFollowed;