diff --git a/CHANGELOG.md b/CHANGELOG.md index 58acd31bf..45e846eb2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,9 @@ ## [Unreleased](https://github.com/pixelfed/pixelfed/compare/v0.11.0...dev) ### Updated - Updated PrettyNumber, fix deprecated warning. ([20ec870b](https://github.com/pixelfed/pixelfed/commit/20ec870b)) +- Updated landing page, use config_cache. ([54920294](https://github.com/pixelfed/pixelfed/commit/54920294)) +- Updated Timeline, implement suggested post opt out. ([66750d34](https://github.com/pixelfed/pixelfed/commit/66750d34)) +- ([](https://github.com/pixelfed/pixelfed/commit/)) ## [v0.11.0 (2021-06-01)](https://github.com/pixelfed/pixelfed/compare/v0.10.10...v0.11.0) ### Added diff --git a/public/js/timeline.js b/public/js/timeline.js index 95bdbacd0..e6ab5a801 100644 Binary files a/public/js/timeline.js and b/public/js/timeline.js differ diff --git a/public/mix-manifest.json b/public/mix-manifest.json index 99c7f7ce2..53dd3292b 100644 Binary files a/public/mix-manifest.json and b/public/mix-manifest.json differ diff --git a/resources/assets/js/components/Timeline.vue b/resources/assets/js/components/Timeline.vue index 543f54320..15e190477 100644 --- a/resources/assets/js/components/Timeline.vue +++ b/resources/assets/js/components/Timeline.vue @@ -294,6 +294,9 @@

View Older Posts

+

+ Always show older posts on this device +

You've reached the end of this feed

@@ -310,6 +313,9 @@

View Older Posts

+

+ Always show older posts on this device +

You've reached the end of this feed

@@ -331,6 +337,9 @@

View Older Posts

+

+ Always show older posts on this device +

@@ -1223,6 +1232,7 @@ }, beforeMount() { + let avop = window.localStorage.getItem('pf.feed:avop') === 'always'; let u = new URLSearchParams(window.location.search); if(u.has('a')) { switch(u.get('a')) { @@ -1236,6 +1246,7 @@ break; } } + this.recentFeed = avop ? false : this.recentFeed; this.fetchProfile(); this.fetchTimelineApi(); }, @@ -2479,6 +2490,12 @@ this.pagination = response.data.meta.pagination; $('.load-more-link').removeClass('d-none'); }); + }, + + alwaysViewOlderPosts() { + // Set Feed:Always View Older Posts + window.localStorage.setItem('pf.feed:avop', 'always'); + window.location.href = '/'; } }, diff --git a/resources/views/site/index.blade.php b/resources/views/site/index.blade.php index d08fc4c48..2997096f8 100644 --- a/resources/views/site/index.blade.php +++ b/resources/views/site/index.blade.php @@ -127,7 +127,7 @@

- @if(config('pixelfed.open_registration')) + @if(config_cache('pixelfed.open_registration')) Register ยท @endif