mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Broken GitHub folder onebox logic (#15612)
1. `html_doc.css('.Box.md')` always returns a truthy value (e.g. `[]`) so the second branch of the if-elsif never ran
2. `node&.css('text()')` was invalid code that would raise an error
3. Matching on h3 elements is no longer correct with the current html structure returned by GitHub
This commit is contained in:
2391
spec/fixtures/onebox/githubfolder-rdoc-root.response
vendored
Normal file
2391
spec/fixtures/onebox/githubfolder-rdoc-root.response
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user