mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
parent
b2201d4179
commit
95ba6a55ec
1 changed files with 4 additions and 2 deletions
|
@ -21,8 +21,10 @@ const forPost = (attrs, frame) => {
|
|||
}
|
||||
if (labs.isSet('members')) {
|
||||
// CASE: Members always adds tags, remove if the user didn't originally ask for them
|
||||
const origQuery = frame.original.query || {};
|
||||
if (!origQuery.include || !origQuery.include.includes('tags')) {
|
||||
const origQueryOrOptions = frame.original.query || frame.original.options || {};
|
||||
const origInclude = origQueryOrOptions.include;
|
||||
|
||||
if (!origInclude || !origInclude.includes('tags')) {
|
||||
delete attrs.tags;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue