mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
redirect to new feed after subscribe now works even for existing feeds
This commit is contained in:
@@ -39,15 +39,15 @@ public class FeedSubscriptionService {
|
||||
private final CacheService cache;
|
||||
private final CommaFeedConfiguration config;
|
||||
|
||||
public FeedSubscription subscribe(User user, String url, String title) {
|
||||
public long subscribe(User user, String url, String title) {
|
||||
return subscribe(user, url, title, null, 0);
|
||||
}
|
||||
|
||||
public FeedSubscription subscribe(User user, String url, String title, FeedCategory parent) {
|
||||
public long subscribe(User user, String url, String title, FeedCategory parent) {
|
||||
return subscribe(user, url, title, parent, 0);
|
||||
}
|
||||
|
||||
public FeedSubscription subscribe(User user, String url, String title, FeedCategory category, int position) {
|
||||
public long subscribe(User user, String url, String title, FeedCategory category, int position) {
|
||||
|
||||
final String pubUrl = config.getApplicationSettings().getPublicUrl();
|
||||
if (StringUtils.isBlank(pubUrl)) {
|
||||
@@ -78,7 +78,7 @@ public class FeedSubscriptionService {
|
||||
|
||||
queues.add(feed, false);
|
||||
cache.invalidateUserRootCategory(user);
|
||||
return sub;
|
||||
return sub.getId();
|
||||
}
|
||||
|
||||
public boolean unsubscribe(User user, Long subId) {
|
||||
|
||||
Reference in New Issue
Block a user