mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
Added support for verified property to BookshelfMentionRepository
refs https://github.com/TryGhost/Team/issues/2549 This ensures we can persist the verification of a Mention to MySQL/SQLite3
This commit is contained in:
parent
277a563138
commit
37cfb96d9f
1 changed files with 4 additions and 2 deletions
|
@ -54,7 +54,8 @@ module.exports = class BookshelfMentionRepository {
|
||||||
sourceAuthor: model.get('source_author'),
|
sourceAuthor: model.get('source_author'),
|
||||||
sourceExcerpt: model.get('source_excerpt'),
|
sourceExcerpt: model.get('source_excerpt'),
|
||||||
sourceFavicon: model.get('source_favicon'),
|
sourceFavicon: model.get('source_favicon'),
|
||||||
sourceFeaturedImage: model.get('source_featured_image')
|
sourceFeaturedImage: model.get('source_featured_image'),
|
||||||
|
verified: model.get('verified')
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -107,7 +108,8 @@ module.exports = class BookshelfMentionRepository {
|
||||||
resource_id: mention.resourceId?.toHexString(),
|
resource_id: mention.resourceId?.toHexString(),
|
||||||
resource_type: mention.resourceId ? 'post' : null,
|
resource_type: mention.resourceId ? 'post' : null,
|
||||||
payload: mention.payload ? JSON.stringify(mention.payload) : null,
|
payload: mention.payload ? JSON.stringify(mention.payload) : null,
|
||||||
deleted: Mention.isDeleted(mention)
|
deleted: Mention.isDeleted(mention),
|
||||||
|
verified: mention.verified
|
||||||
};
|
};
|
||||||
|
|
||||||
const existing = await this.#MentionModel.findOne({id: data.id}, {require: false});
|
const existing = await this.#MentionModel.findOne({id: data.id}, {require: false});
|
||||||
|
|
Loading…
Add table
Reference in a new issue