fix: user provided feed title for notifications (fixes #22)

This commit is contained in:
relikd
2025-10-29 18:27:32 +01:00
parent 0700eebb13
commit 5894b12c1d
3 changed files with 13 additions and 6 deletions

View File

@@ -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];
}