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:
parent
018e2654c5
commit
04efb6c177
1 changed files with 4 additions and 0 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Reference in a new issue