mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 13:51:09 +08:00
DEV: Update to lastest rubocop-discourse
This commit is contained in:

committed by
Loïc Guitaut

parent
3b6d4c830f
commit
2a28cda15c
@ -144,7 +144,7 @@ class EmbedController < ApplicationController
|
||||
|
||||
topic_embeds.each do |te|
|
||||
url = te.embed_url
|
||||
url = "#{url}#discourse-comments" unless params[:embed_url].include?(url)
|
||||
url = "#{url}#discourse-comments" if params[:embed_url].exclude?(url)
|
||||
if te.topic.present?
|
||||
by_url[url] = I18n.t("embed.replies", count: te.topic.posts_count - 1)
|
||||
else
|
||||
|
Reference in New Issue
Block a user