Skip to content

Commit 651338a

Browse files
authored
Fix an issue with Subscribe button not working for Freshly Pressed posts (#25476)
1 parent 98442cb commit 651338a

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

RELEASE-NOTES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
* [*] Reader: Fix an issue with "Notificaton Settings" showing incorrect state right after subscribing [#25459]
1111
* [*] Reader: Fix an issue with "Notificaton Settings" button shown when you are not subscribed [#25459]
1212
* [*] Reader: Fix a regression with anchors not working in posts [#25459]
13+
* [*] Reader: Fix an issue with Subscribe button not working for Freshly Pressed posts [#25476]
1314
* [*] Reader: Fix an issue with empty state not disappearing on Reader Comments view after you post a comment [#25484]
1415
* [*] Reader: Fix an issues with Reader failing to clear cached comments if all the comments are deleted [#25482]
1516
* [*] Reader: Fix an issue with the article view removing autoplay without showing controls [#25468]

WordPress/Classes/Services/Reader Post/ReaderPostService.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,8 @@ - (void)toggleFollowingForPost:(ReaderPost *)readerPost
295295
// If this post belongs to a site topic, let the topic service do the work.
296296
ReaderTopicService *topicService = [[ReaderTopicService alloc] initWithCoreDataStack:self.coreDataStack];
297297

298-
if ([readerPost.topic isKindOfClass:[ReaderSiteTopic class]]) {
298+
// Workaround for CMM-2006: Skip freshly pressed topics as they cannot be followed through the site service
299+
if ([readerPost.topic isKindOfClass:[ReaderSiteTopic class]] && ![ReaderHelpers topicIsFreshlyPressed:readerPost.topic]) {
299300
ReaderSiteTopic *siteTopic = (ReaderSiteTopic *)readerPost.topic;
300301
[topicService toggleFollowingForSite:siteTopic success:success failure:failure];
301302
return;

0 commit comments

Comments
 (0)