Likes columns gone after upgraded

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’’

1 Like

Have you had a look at

https://meta.discourse.org/t/deprecating-es6-compatibility-layer/35821?u=sam

2 Likes

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.

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

Jeez typing this on an iPhone sure is hard

9 Likes

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

2 Likes