Skip to content

fix(Bot): set Cheerio to fragment to avoid multipreset clobbering pages - #317

Open
jakeaturner wants to merge 1 commit into
masterfrom
fix/multipreset-bots
Open

fix(Bot): set Cheerio to fragment to avoid multipreset clobbering pages#317
jakeaturner wants to merge 1 commit into
masterfrom
fix/multipreset-bots

Conversation

@jakeaturner

Copy link
Copy Markdown
Collaborator

addPageIdentifierClass and convertContainers used cheerio.load() in document mode, so $.html() emitted <html><head></head><body>...</body></html>. MindTouch rejected the full document on POST and stored an empty page. Pass isDocument=false so $.html() returns a body fragment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants