diff --git a/public/src/forum/category.js b/public/src/forum/category.js index 0d31b23bd2..924925de9f 100644 --- a/public/src/forum/category.js +++ b/public/src/forum/category.js @@ -191,8 +191,8 @@ define(['composer', 'forum/pagination', 'share', 'navigator', 'forum/categoryToo if (numTopics > 0) { for (var x = 0; x < numTopics; x++) { - var pin = $(topics[x]).find('.fa-thumb-tack'); - if (pin.length && !pin.hasClass('hide')) { + var pinned = $(topics[x]).hasClass('pinned'); + if (pinned) { if(x === numTopics - 1) { topic.insertAfter(topics[x]); }