From 5894b12c1d73b997376df5d9155926687a21441c Mon Sep 17 00:00:00 2001 From: relikd Date: Wed, 29 Oct 2025 18:27:32 +0100 Subject: [PATCH] fix: user provided feed title for notifications (fixes #22) --- CHANGELOG.md | 6 ++++++ baRSS.xcodeproj/project.pbxproj | 8 ++++---- baRSS/Notifications/NotifyEndpoint.m | 5 +++-- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0682889..c4d4074 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.5.3] – 2025-10-29 +### Fixed +- *Notifications:* Use user-provided feed title instead of server provided title + + ## [1.5.2] – 2025-10-29 ### Added - *Notifications:* Reply with "Open in background", "Mark read & dismiss", or "Open but keep unread" @@ -225,6 +230,7 @@ and this project does adhere to [Semantic Versioning](https://semver.org/spec/v2 Initial release +[1.5.3]: https://github.com/relikd/baRSS/compare/v1.5.2...v1.5.3 [1.5.2]: https://github.com/relikd/baRSS/compare/v1.5.1...v1.5.2 [1.5.1]: https://github.com/relikd/baRSS/compare/v1.5.0...v1.5.1 [1.5.0]: https://github.com/relikd/baRSS/compare/v1.4.1...v1.5.0 diff --git a/baRSS.xcodeproj/project.pbxproj b/baRSS.xcodeproj/project.pbxproj index fd6eeb7..4a5e27a 100644 --- a/baRSS.xcodeproj/project.pbxproj +++ b/baRSS.xcodeproj/project.pbxproj @@ -805,7 +805,7 @@ CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 16777; + CURRENT_PROJECT_VERSION = 16785; DEAD_CODE_STRIPPING = YES; DEBUG_INFORMATION_FORMAT = dwarf; DEVELOPMENT_TEAM = UY657LKNHJ; @@ -823,7 +823,7 @@ GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; MACOSX_DEPLOYMENT_TARGET = 10.14; - MARKETING_VERSION = 1.5.2; + MARKETING_VERSION = 1.5.3; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = macosx; @@ -866,7 +866,7 @@ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; CODE_SIGN_INJECT_BASE_ENTITLEMENTS = NO; COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 16777; + CURRENT_PROJECT_VERSION = 16785; DEAD_CODE_STRIPPING = YES; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; DEVELOPMENT_TEAM = UY657LKNHJ; @@ -881,7 +881,7 @@ GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; MACOSX_DEPLOYMENT_TARGET = 10.14; - MARKETING_VERSION = 1.5.2; + MARKETING_VERSION = 1.5.3; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = macosx; }; diff --git a/baRSS/Notifications/NotifyEndpoint.m b/baRSS/Notifications/NotifyEndpoint.m index 521a7e9..d7afe92 100644 --- a/baRSS/Notifications/NotifyEndpoint.m +++ b/baRSS/Notifications/NotifyEndpoint.m @@ -2,6 +2,7 @@ #import "UserPrefs.h" #import "StoreCoordinator.h" #import "Feed+Ext.h" +#import "FeedGroup+Ext.h" #import "FeedArticle+Ext.h" /** @@ -84,7 +85,7 @@ static NotificationType notifyType; if (count > 0) { [feed.managedObjectContext obtainPermanentIDsForObjects:@[feed] error:nil]; [self send:feed.notificationID - title:feed.title + title:feed.group.anyName body:[NSString stringWithFormat:NSLocalizedString(@"%ld unread articles", nil), count]]; } } @@ -96,7 +97,7 @@ static NotificationType notifyType; } [article.managedObjectContext obtainPermanentIDsForObjects:@[article] error:nil]; [self send:article.notificationID - title:article.feed.title + title:article.feed.group.anyName body:article.title]; }