mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-25 02:31:59 -05:00
Exposed MentionsAPI from mentions service
This is necessary so that we can use it as the IMentionReportGenerator dependency for the mentions-email-report packages
This commit is contained in:
parent
018e2654c5
commit
04efb6c177
1 changed files with 4 additions and 0 deletions
|
@ -25,6 +25,8 @@ function getPostUrl(post) {
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
/** @type {import('@tryghost/webmentions/lib/MentionsAPI')} */
|
||||||
|
api: null,
|
||||||
controller: new MentionController(),
|
controller: new MentionController(),
|
||||||
didInit: false,
|
didInit: false,
|
||||||
async init() {
|
async init() {
|
||||||
|
@ -56,6 +58,8 @@ module.exports = {
|
||||||
routingService
|
routingService
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.api = api;
|
||||||
|
|
||||||
this.controller.init({
|
this.controller.init({
|
||||||
api,
|
api,
|
||||||
jobService: {
|
jobService: {
|
||||||
|
|
Loading…
Add table
Reference in a new issue