mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 03:14:03 +03: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
@ -54,7 +54,8 @@ module.exports = class BookshelfMentionRepository {
|
||||
sourceAuthor: model.get('source_author'),
|
||||
sourceExcerpt: model.get('source_excerpt'),
|
||||
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_type: mention.resourceId ? 'post' : 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});
|
||||
|
Loading…
Reference in New Issue
Block a user