Skip to content

Commit

Permalink
Support import of @published page (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
cperryk authored and nelsonpecora committed Sep 21, 2017
1 parent 53bcc84 commit bf7b198
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/io/input-clay.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,10 @@ function getDeepPage(concurrency, url) {

return rest.get(url, concurrency)
.flatMap((pageData) => {

// remove reserved properties that aren't URIs or URI arrays
pageData = _.omit(pageData, ['url', 'urlHistory', 'customUrl', 'lastModified', 'priority', 'changeFrequency']);

const childUrls = _.reduce(pageData, (uris, area) => {
if (_.isArray(area)) {
return uris.concat(area);
Expand Down

0 comments on commit bf7b198

Please sign in to comment.