diff --git a/Account/Sources/Account/CloudKit/CloudKitAccountDelegate.swift b/Account/Sources/Account/CloudKit/CloudKitAccountDelegate.swift
index 71ea4da7a..c9716e984 100644
--- a/Account/Sources/Account/CloudKit/CloudKitAccountDelegate.swift
+++ b/Account/Sources/Account/CloudKit/CloudKitAccountDelegate.swift
@@ -194,6 +194,7 @@ final class CloudKitAccountDelegate: AccountDelegate {
removeWebFeedFromCloud(for: account, with: feed, from: container) { result in
switch result {
case .success:
+ account.clearWebFeedMetadata(feed)
container.removeWebFeed(feed)
completion(.success(()))
case .failure(let error):
diff --git a/Account/Sources/Account/FeedProvider/Reddit/RedditFeedProvider.swift b/Account/Sources/Account/FeedProvider/Reddit/RedditFeedProvider.swift
index 91f87218e..9f740a5a8 100644
--- a/Account/Sources/Account/FeedProvider/Reddit/RedditFeedProvider.swift
+++ b/Account/Sources/Account/FeedProvider/Reddit/RedditFeedProvider.swift
@@ -280,7 +280,7 @@ extension RedditFeedProvider: OAuth2SwiftProvider {
consumerSecret: "",
authorizeUrl: "https://www.reddit.com/api/v1/authorize.compact?",
accessTokenUrl: "https://www.reddit.com/api/v1/access_token",
- responseType: "token")
+ responseType: "code")
oauth2.accessTokenBasicAuthentification = true
return oauth2
}
@@ -293,12 +293,7 @@ extension RedditFeedProvider: OAuth2SwiftProvider {
let state = generateState(withLength: 20)
let scope = "identity mysubreddits read"
let params = [
- "client_id" : SecretsManager.provider.redditConsumerKey,
- "response_type" : "code",
- "state" : state,
- "redirect_uri" : "netnewswire://success",
"duration" : "permanent",
- "scope" : scope
]
return (state: state, scope: scope, params: params)
}
diff --git a/Account/Sources/Account/FeedProvider/Reddit/RedditLink.swift b/Account/Sources/Account/FeedProvider/Reddit/RedditLink.swift
index 3ec8aa295..ff91ddca4 100644
--- a/Account/Sources/Account/FeedProvider/Reddit/RedditLink.swift
+++ b/Account/Sources/Account/FeedProvider/Reddit/RedditLink.swift
@@ -98,7 +98,7 @@ final class RedditLinkData: Codable {
guard let url = url else { return "" }
if url.hasSuffix(".gif") {
- return ""
+ return ""
}
if isVideo ?? false, let videoURL = media?.video?.hlsURL {
@@ -109,12 +109,25 @@ final class RedditLinkData: Codable {
if let width = media?.video?.width, let height = media?.video?.height {
html += "width=\"\(width)\" height=\"\(height)\" "
}
- html += "src=\"\(videoURL)\" autoplay muted loop>"
+ html += "src=\"\(videoURL)\">"
+ return html
+ }
+
+ if let imageVariantURL = preview?.images?.first?.variants?.mp4?.source?.url {
+ var html = ""
+ html += linkURL(url)
return html
}
if let videoPreviewURL = preview?.videoPreview?.url {
- var html = "