Skip to content

Commit

Permalink
Set feed node name to "rss" for RSS feeds
Browse files Browse the repository at this point in the history
  • Loading branch information
thecatalinstan committed Aug 24, 2016
1 parent 869b3c5 commit 7cf0e4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CSFeedKit/RSS/CSRSSFeed.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@
@implementation CSRSSFeed

- (instancetype)init {
return [self initWithNodeName:nil];
return [self initWithNodeName:@"rss"];
}

- (instancetype)initWithNodeName:(NSString *)nodeName {
self = [super initWithNodeName:nodeName];
if ( self != nil ) {
self.nodeName = nodeName ? : @"rss";
self.namespaces[@"content"] = @"http://purl.org/rss/1.0/modules/content/";
self.namespaces[@"wfw"] = @"http://wellformedweb.org/CommentAPI/";
self.namespaces[@"dc"] = @"http://purl.org/dc/elements/1.1/";
Expand Down

0 comments on commit 7cf0e4d

Please sign in to comment.