Support multiple author tags in a feed

This commit is contained in:
Cj Malone 2016-10-05 17:34:05 +01:00
parent 8accc12048
commit 7fe1e07048
1 changed files with 6 additions and 1 deletions

View File

@ -206,7 +206,12 @@ public class NSAtom extends Namespace {
state.getFeed().setImage(new FeedImage(state.getFeed(), content, null)); state.getFeed().setImage(new FeedImage(state.getFeed(), content, null));
} else if (AUTHOR.equals(second) && state.getFeed() != null) { } else if (AUTHOR.equals(second) && state.getFeed() != null) {
if (AUTHOR_NAME.equals(top)) { if (AUTHOR_NAME.equals(top)) {
state.getFeed().setAuthor(content); String currentName = state.getFeed().getAuthor();
if (currentName == null) {
state.getFeed().setAuthor(content);
} else {
state.getFeed().setAuthor(currentName + ", " + content);
}
} }
} }
} }