mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Lazyloaded cheerio dependency
- we can move this lower in the code so it's not eagerly loaded when it's not needed
This commit is contained in:
parent
de5dcb8189
commit
67278d91a1
1 changed files with 1 additions and 1 deletions
|
@ -1,4 +1,3 @@
|
|||
const cheerio = require('cheerio');
|
||||
const logging = require('@tryghost/logging');
|
||||
|
||||
module.exports = class MentionDiscoveryService {
|
||||
|
@ -62,6 +61,7 @@ module.exports = class MentionDiscoveryService {
|
|||
return null;
|
||||
}
|
||||
|
||||
const cheerio = require('cheerio');
|
||||
const $ = cheerio.load(response.body);
|
||||
|
||||
// must be first <link> OR <a> element with rel=webmention
|
||||
|
|
Loading…
Reference in a new issue