diff --git a/apple/OmnivoreKit/Sources/Services/InternalModels/InternalHighlight.swift b/apple/OmnivoreKit/Sources/Services/InternalModels/InternalHighlight.swift index 16994232b..26e93b9f0 100644 --- a/apple/OmnivoreKit/Sources/Services/InternalModels/InternalHighlight.swift +++ b/apple/OmnivoreKit/Sources/Services/InternalModels/InternalHighlight.swift @@ -58,7 +58,9 @@ struct InternalHighlight: Encodable { oldHighlightsIds: [String] = [] ) { context.perform { - _ = asManagedObject(context: context, associatedItemID: associatedItemID) + let highlight = asManagedObject(context: context, associatedItemID: associatedItemID) + let linkedItem = LinkedItem.lookup(byID: associatedItemID, inContext: context) + linkedItem?.addToHighlights(highlight) if !oldHighlightsIds.isEmpty { let fetchRequest: NSFetchRequest = Highlight.fetchRequest()