]> cat aescling's git repositories - mastodon.git/commitdiff
Skip pagination logic entirely for pinned toots (fixes #8302) (#8310)
authorThibG <thib@sitedethib.com>
Mon, 20 Aug 2018 11:32:43 +0000 (13:32 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Mon, 20 Aug 2018 11:32:43 +0000 (13:32 +0200)
app/javascript/mastodon/actions/timelines.js

index 11a199db6ae0f9ce6cfbf185c031e56ebe5fa35d..e8fd441e128d3bb4e9df25c529b61ca620552524 100644 (file)
@@ -55,7 +55,7 @@ export function expandTimeline(timelineId, path, params = {}, done = noOp) {
       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]);
     }