0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -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:
Fabien "egg" O'Carroll 2023-03-12 23:10:23 +07:00 committed by Rishabh Garg
parent 018e2654c5
commit 04efb6c177

View file

@ -25,6 +25,8 @@ function getPostUrl(post) {
}
module.exports = {
/** @type {import('@tryghost/webmentions/lib/MentionsAPI')} */
api: null,
controller: new MentionController(),
didInit: false,
async init() {
@ -56,6 +58,8 @@ module.exports = {
routingService
});
this.api = api;
this.controller.init({
api,
jobService: {