DEV: Update to lastest rubocop-discourse

This commit is contained in:
Loïc Guitaut
2024-05-27 12:27:13 +02:00
committed by Loïc Guitaut
parent 3b6d4c830f
commit 2a28cda15c
164 changed files with 269 additions and 263 deletions

View File

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