mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: improve rendering of RSS feeds
- Eliminate superfluous "author wrote" block - Eliminate block-quote for all posts - Move participant count and reply count to 1 line - Prioritize name over username if forum requests - Use fabrication in list controller spec to speed up spec
This commit is contained in:
@@ -513,4 +513,14 @@ module ApplicationHelper
|
||||
!SiteSetting.invite_only &&
|
||||
!SiteSetting.enable_sso
|
||||
end
|
||||
|
||||
def rss_creator(user)
|
||||
if user
|
||||
if SiteSetting.prioritize_username_in_ux
|
||||
"#{user.username}"
|
||||
else
|
||||
"#{user.name.presence || user.username }"
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user