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:
Sam Saffron
2020-04-20 16:08:24 +10:00
parent 344ef5226c
commit ee36382640
5 changed files with 42 additions and 38 deletions

View File

@@ -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