diff --git a/NetNewsWire/MainWindow/Detail/ArticleRenderer.swift b/NetNewsWire/MainWindow/Detail/ArticleRenderer.swift index e07788edc..c0b41558c 100644 --- a/NetNewsWire/MainWindow/Detail/ArticleRenderer.swift +++ b/NetNewsWire/MainWindow/Detail/ArticleRenderer.swift @@ -400,7 +400,16 @@ class ArticleRenderer { return "" } - var byline = "" + // If the author's name is the same as the feed, then we don't want to display it. + // This code assumes that multiple authors would never match the feed name so that + // if there feed owner has an article co-author all authors are given the byline. + if authors.count == 1, let author = authors.first { + if author.name == article.feed?.nameForDisplay { + return "" + } + } + + var byline = "" var isFirstAuthor = true for author in authors { @@ -430,8 +439,8 @@ class ArticleRenderer { } } - return byline + } private func renderedHTML() -> String {