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:
parent
b0a130db86
commit
a4daafa026
@ -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 = {}
|
||||
|
Loading…
Reference in New Issue
Block a user