REFACTOR: Add full_url and display_name to User
Lets stop writing the same code over and over again.
This commit is contained in:
committed by
Gerhard Schlager
parent
650adbe423
commit
b3cda195b8
@@ -132,7 +132,7 @@ class PostsController < ApplicationController
|
||||
format.rss do
|
||||
@posts = posts
|
||||
@title = "#{SiteSetting.title} - #{I18n.t("rss_description.user_posts", username: user.username)}"
|
||||
@link = "#{Discourse.base_url}/u/#{user.username}/activity"
|
||||
@link = "#{user.full_url}/activity"
|
||||
@description = I18n.t("rss_description.user_posts", username: user.username)
|
||||
render 'posts/latest', formats: [:rss]
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user