diff --git a/apple/OmnivoreKit/Sources/App/PDFSupport/PDFViewerViewModel.swift b/apple/OmnivoreKit/Sources/App/PDFSupport/PDFViewerViewModel.swift index 5bf694f5b..4240b9509 100644 --- a/apple/OmnivoreKit/Sources/App/PDFSupport/PDFViewerViewModel.swift +++ b/apple/OmnivoreKit/Sources/App/PDFSupport/PDFViewerViewModel.swift @@ -57,7 +57,8 @@ public final class PDFViewerViewModel: ObservableObject { prefix: nil, suffix: nil, patch: patch, - annotation: nil + annotation: nil, + createdByMe: true ) ) @@ -94,7 +95,8 @@ public final class PDFViewerViewModel: ObservableObject { prefix: nil, suffix: nil, patch: patch, - annotation: nil + annotation: nil, + createdByMe: true ) ) diff --git a/apple/OmnivoreKit/Sources/App/Views/WebReader/WebReaderContent.swift b/apple/OmnivoreKit/Sources/App/Views/WebReader/WebReaderContent.swift index 39b330335..a725b4212 100644 --- a/apple/OmnivoreKit/Sources/App/Views/WebReader/WebReaderContent.swift +++ b/apple/OmnivoreKit/Sources/App/Views/WebReader/WebReaderContent.swift @@ -36,36 +36,35 @@ struct WebReaderContent { -
- -
+ window.fontSize = \(textFontSize) + window.localStorage.setItem("authToken", "\(authToken)") + window.localStorage.setItem("theme", "\(themeKey)") + diff --git a/apple/OmnivoreKit/Sources/Models/Highlight.swift b/apple/OmnivoreKit/Sources/Models/Highlight.swift index db1dd425c..477c33352 100644 --- a/apple/OmnivoreKit/Sources/Models/Highlight.swift +++ b/apple/OmnivoreKit/Sources/Models/Highlight.swift @@ -10,6 +10,7 @@ public struct Highlight: Identifiable, Hashable, Codable { public let annotation: String? public let createdAt: Date? public let updatedAt: Date? + public let createdByMe: Bool public init( id: String, @@ -19,6 +20,7 @@ public struct Highlight: Identifiable, Hashable, Codable { suffix: String?, patch: String, annotation: String?, + createdByMe: Bool, createdAt: Date? = nil, updatedAt: Date? = nil ) { @@ -31,5 +33,6 @@ public struct Highlight: Identifiable, Hashable, Codable { self.annotation = annotation self.createdAt = createdAt self.updatedAt = updatedAt + self.createdByMe = createdByMe } } diff --git a/apple/OmnivoreKit/Sources/Services/DataService/Queries/ArticleContentQuery.swift b/apple/OmnivoreKit/Sources/Services/DataService/Queries/ArticleContentQuery.swift index 1fdcd7db6..3c1e5ed5a 100644 --- a/apple/OmnivoreKit/Sources/Services/DataService/Queries/ArticleContentQuery.swift +++ b/apple/OmnivoreKit/Sources/Services/DataService/Queries/ArticleContentQuery.swift @@ -18,7 +18,8 @@ public extension DataService { prefix: try $0.prefix(), suffix: try $0.suffix(), patch: try $0.patch(), - annotation: try $0.annotation() + annotation: try $0.annotation(), + createdByMe: try $0.createdByMe() ) } diff --git a/apple/OmnivoreKit/Sources/Services/DataService/Queries/PDFHighlightsQuery.swift b/apple/OmnivoreKit/Sources/Services/DataService/Queries/PDFHighlightsQuery.swift index 6b0c0d215..9dcacd325 100644 --- a/apple/OmnivoreKit/Sources/Services/DataService/Queries/PDFHighlightsQuery.swift +++ b/apple/OmnivoreKit/Sources/Services/DataService/Queries/PDFHighlightsQuery.swift @@ -18,7 +18,8 @@ public extension DataService { prefix: try $0.prefix(), suffix: try $0.suffix(), patch: try $0.patch(), - annotation: try $0.annotation() + annotation: try $0.annotation(), + createdByMe: try $0.createdByMe() ) }