mirror of
https://github.com/discourse/discourse.git
synced 2025-03-15 05:05:28 +08:00
Don't show link counts in the body of posts for internal links. They are
already in the sidebar.
This commit is contained in:
parent
76d373161d
commit
8538e31fb4
@ -137,7 +137,7 @@ Discourse.PostView = Discourse.GroupedView.extend(Ember.Evented, {
|
||||
|
||||
self.$(".cooked a[href]").each(function() {
|
||||
var link = $(this);
|
||||
if (link.attr('href') === lc.url) {
|
||||
if (!lc.internal && link.attr('href') === lc.url) {
|
||||
// don't display badge counts on category badge
|
||||
if (link.closest('.badge-category').length === 0 && ((link.closest(".onebox-result").length === 0 && link.closest('.onebox-body').length === 0) || link.hasClass("track-link"))) {
|
||||
link.append("<span class='badge badge-notification clicks' title='" +
|
||||
|
Loading…
x
Reference in New Issue
Block a user