REFACTOR: Add full_url and display_name to User

Lets stop writing the same code over and over again.
This commit is contained in:
Gerhard Schlager
2022-04-13 15:52:56 +02:00
committed by Gerhard Schlager
parent 650adbe423
commit b3cda195b8
8 changed files with 22 additions and 35 deletions
+1 -1
View File
@@ -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