Skip pagination logic entirely for pinned toots (fixes #8302) (#8310)

master
ThibG 6 years ago committed by Eugen Rochko
parent 6226aa83d7
commit 5fbf12bbb8
  1. 2
      app/javascript/mastodon/actions/timelines.js

@ -55,7 +55,7 @@ export function expandTimeline(timelineId, path, params = {}, done = noOp) {
return; return;
} }
if (!params.max_id && timeline.get('items', ImmutableList()).size > 0) { if (!params.max_id && !params.pinned && timeline.get('items', ImmutableList()).size > 0) {
params.since_id = timeline.getIn(['items', 0]); params.since_id = timeline.getIn(['items', 0]);
} }

Loading…
Cancel
Save