mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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