From 8a0e42ca627a413b8ddc868d430d66885ec8843f Mon Sep 17 00:00:00 2001 From: Paul Robert Lloyd Date: Sat, 13 Apr 2024 19:21:31 +0100 Subject: [PATCH] feat(endpoint-posts): always hide advanced options when creating new post --- packages/endpoint-posts/lib/middleware/post-data.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/endpoint-posts/lib/middleware/post-data.js b/packages/endpoint-posts/lib/middleware/post-data.js index 7f549d692..af9eded83 100644 --- a/packages/endpoint-posts/lib/middleware/post-data.js +++ b/packages/endpoint-posts/lib/middleware/post-data.js @@ -23,10 +23,6 @@ export const postData = { // Only select ‘checked’ syndication targets on first view const checkTargets = Object.entries(request.body).length === 0; - // Only show advanced options if one of those fields has been updated - const showAdvancedOptions = - properties.category || properties.location || properties.visibility; - response.locals = { accessToken: access_token, action: "create", @@ -36,7 +32,7 @@ export const postData = { postType, properties, scope, - showAdvancedOptions, + showAdvancedOptions: false, syndicationTargetItems: getSyndicateToItems(publication, checkTargets), type: h, ...response.locals,