diff --git a/resources/assets/js/timeline.js b/resources/assets/js/timeline.js index 2c3e400c..ff9587d6 100644 --- a/resources/assets/js/timeline.js +++ b/resources/assets/js/timeline.js @@ -4,6 +4,7 @@ $(document).ready(function() { let elem = document.querySelector('.timeline-feed'); let type = elem.getAttribute('data-timeline'); $('.timeline-sidenav .nav-link[data-type="'+type+'"]').addClass('active'); + pixelfed.readmore(); pixelfed.fetchLikes(); $('video').on('play', function() { activated = this; @@ -40,8 +41,8 @@ $(document).ready(function() { $(document).on("DOMContentLoaded", function() { var active = false; - var lazyLoad = function() { + pixelfed.readmore(); if (active === false) { active = true;