Likes columns gone after upgraded


(Kevin Yang) #1

After upgrade to newest version, it seems the following tricks to show ‘Likes’ column is not working anymore. Is there any workaround?

<script>
Discourse.TopicListComponent.reopen({
    showLikes: true
});
</script>

in my admin area, it keep showing ‘Cannot read property ‘reopen’’


showOpLikes - How to enable?
(Sam Saffron) #2

Have you had a look at


(Kevin Yang) #3

I just read the post, still get no idea how to get the ‘Likes’ column back. I try to dump the ‘Discourse’ object, find there’s a ‘Topic’ property which has the ‘reopen’ function, i thought you guys change the names, so i change that too, it doesnt work.

i google and do forum search ‘Like column’, cannt find any new solutions.

I think it would be great to put a option in sitesettings

workaround1: put query string ‘?order=likes’ behind my site url.


(Sam Saffron) #4
<script>
var TopicListComponent = require('discourse/components/topic-list').default;
TopicListComponent.reopen({
    showLikes: true
});
</script>

Jeez typing this on an iPhone sure is hard


Suggestion: display vote/like counter in main page
(Kevin Yang) #5

It works, you guys are awosome!!:grinning:


(Régis Hanol) #6