<baris>

u/baris@community.nodebb.org
14 posts · 99 comments

Recent posts

Recent comments

The latest file is here https://github.com/jedfoster/Readmore.js/blob/master/readmore.min.js, I tried using it with the latest version of nodebb and found some issues. Create a pull request with my fixes at https://github.com/jedfoster/Readmore.js/pull/265/changes.

So with that updated file in public/uploads folder and the below custom javascript in the ACP it works.

$(window).on('action:topic.loaded action:posts.loaded', function() {
   function enableReadMore() {
       $('blockquote').readmore({});
   } 
   if (!$.readmore) {
       $.getScript('/foren/assets/uploads/readmore.min.js').then(enableReadMore);
   } else {
       enableReadMore();
   }
});

readmore.gif

readmore.gif

Core no longer uses requirejs so that syntax will no longer work. If you put the readmore.min.js file in public/uploads then you can load it and use it with $.getScript().

$.getScript('/assets/uploads/readmore.min.js', function () {
  $('<div>').readmore();
})
```</div>
on Digest Email · c/general-discussion · 1 pts · 137d

Are you running more than one nodebb process? If they are on different servers need to add jobsDisabled: true on all of them except one.

@twissell yes, the issue only occured on mass deleting tags and if the topic had all those tags.

For example you have a topic with tag1, tag2, tag3 and you delete them at the same time then it was causing this issue.