From 37cfb96d9f80fabe2e8513cc40f7e508ccc0a724 Mon Sep 17 00:00:00 2001 From: "Fabien \"egg\" O'Carroll" Date: Fri, 17 Feb 2023 18:42:16 +0700 Subject: [PATCH] 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 --- .../server/services/mentions/BookshelfMentionRepository.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ghost/core/core/server/services/mentions/BookshelfMentionRepository.js b/ghost/core/core/server/services/mentions/BookshelfMentionRepository.js index d697e294be..f41ff4357f 100644 --- a/ghost/core/core/server/services/mentions/BookshelfMentionRepository.js +++ b/ghost/core/core/server/services/mentions/BookshelfMentionRepository.js @@ -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});