mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 13:06:56 +08:00
Support trailing /
when retrieving comment counts.
This commit is contained in:
@ -28,7 +28,7 @@ class EmbedController < ApplicationController
|
||||
|
||||
def count
|
||||
|
||||
urls = params[:embed_url].map {|u| u.sub(/#discourse-comments$/, '') }
|
||||
urls = params[:embed_url].map {|u| u.sub(/#discourse-comments$/, '').sub(/\/$/, '') }
|
||||
topic_embeds = TopicEmbed.where(embed_url: urls).includes(:topic).references(:topic)
|
||||
|
||||
by_url = {}
|
||||
|
Reference in New Issue
Block a user