mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 13:13:39 +08:00
FIX: Always render topic counts (#13563)
A post is rendered multiple times when it is being loaded. Sometimes, not all information is available and the best link in the Onebox cannot be found.
This commit is contained in:
parent
b8a0e47913
commit
e123476329
|
@ -142,7 +142,8 @@ export default class PostCooked {
|
|||
const $onebox = $link.closest(".onebox");
|
||||
if (
|
||||
$onebox.length === 0 ||
|
||||
(bestElements[$onebox[0]] && bestElements[$onebox[0]] === $link[0])
|
||||
!bestElements[$onebox[0]] ||
|
||||
bestElements[$onebox[0]] === $link[0]
|
||||
) {
|
||||
const title = I18n.t("topic_map.clicks", { count: lc.clicks });
|
||||
$link.append(
|
||||
|
|
Loading…
Reference in New Issue
Block a user