Skip to content

Commit 8a0e42c

Browse files
feat(endpoint-posts): always hide advanced options when creating new post
1 parent f5f2807 commit 8a0e42c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/endpoint-posts/lib/middleware/post-data.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ export const postData = {
2323
// Only select ‘checked’ syndication targets on first view
2424
const checkTargets = Object.entries(request.body).length === 0;
2525

26-
// Only show advanced options if one of those fields has been updated
27-
const showAdvancedOptions =
28-
properties.category || properties.location || properties.visibility;
29-
3026
response.locals = {
3127
accessToken: access_token,
3228
action: "create",
@@ -36,7 +32,7 @@ export const postData = {
3632
postType,
3733
properties,
3834
scope,
39-
showAdvancedOptions,
35+
showAdvancedOptions: false,
4036
syndicationTargetItems: getSyndicateToItems(publication, checkTargets),
4137
type: h,
4238
...response.locals,

0 commit comments

Comments
 (0)