Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions Sources/WordPressData/Swift/ReaderCard+CoreDataClass.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ public class ReaderCard: NSManagedObject {
case .post:
post = ReaderPost.createOrReplace(fromRemotePost: remoteCard.post, for: nil, context: context)
case .interests:
topics = NSOrderedSet(array: remoteCard.interests?.prefix(5).map {
ReaderTagTopic.createOrUpdateIfNeeded(from: $0, context: context)
} ?? [])
return nil // Disabled in v26.6
case .sites:
sites = NSOrderedSet(array: remoteCard.sites?.prefix(3).map {
ReaderSiteTopic.createIfNeeded(from: $0, context: context)
Expand Down
5 changes: 2 additions & 3 deletions Tests/KeystoneTests/Tests/Models/ReaderCardTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ class ReaderCardTests: CoreDataTestCase {
let card = ReaderCard(context: self.mainContext, from: remoteCard)
let topics = card?.topicsArray

expect(topics?.count).to(equal(2))
expect(topics?.filter { $0.title == "Activism" }).toNot(beNil())
expect(topics?.filter { $0.slug == "activism" }).toNot(beNil())
// THEN return 0 as these were disabled in 26.5
expect(topics).to(beNil())
expectation.fulfill()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import UIKit
import WordPressData
import WordPressUI

/// - warning: The tags no longer gets shown since v26.6.
final class ReaderRecommendedTagsCell: UITableViewCell {
private let scrollView = UIScrollView()
private let tagsStackView = UIStackView(axis: .horizontal, spacing: 8, insets: UIEdgeInsets(.vertical, 16), [])
Expand Down