From 549202948d9182e53d74a958125636101786874f Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 7 Jun 2021 19:28:26 -0600 Subject: [PATCH 1/4] Update landing page, use config_cache --- resources/views/site/index.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 66750d347ae80a1649458da6a60b055d9e9cf193 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 7 Jun 2021 23:32:35 -0600 Subject: [PATCH 2/4] Update Timeline, implement suggested post opt out --- resources/assets/js/components/Timeline.vue | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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 = '/'; } }, From 65259e1135b632007f89037b629dbcfe2f23ab68 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 7 Jun 2021 23:33:20 -0600 Subject: [PATCH 3/4] Update compiled assets --- public/js/timeline.js | Bin 190055 -> 191010 bytes public/mix-manifest.json | Bin 2207 -> 2207 bytes 2 files changed, 0 insertions(+), 0 deletions(-) diff --git a/public/js/timeline.js b/public/js/timeline.js index 95bdbacd08a3a98f113134ad65eeafe2576d57f7..e6ab5a801dfdb174ac6126127d6f664e3224bff2 100644 GIT binary patch delta 1830 zcmcIlZEO@p7|u+uM`;Bqv{xdby>8&xE#t9GC~5E5a&6_H^a_PSKdv9R-P`Ld?nisO zcP%LuV}iztBH4rqYNQf>7%>sNkTre zzVpuWyw5v3GdDgjIefn4=+zYf+aCs(*~NSfwd(k-0B5K8)kV}fQy=l+pepOb7Dk$^ zTZ*A?mB+0Rwih?_0?i(4cy*R0$Ve9~dw)-vjY3-j+QS9u2L>0`gmlnM51Cd<(TCY2 zN-o#3Z-saOwCva6gT+l);E^WqVGAo}kn*Hk4BZkHT~4){%|>EpAi!cl4O+$sO;ags z(&EAyG38GR6EsN6c`w=lwD;GY^*}7x9kEq*VXUP<6R_PDJ49J-#ZJ$rdX9B1sL=#H zXv(TASuLt)nkXq`3?<>`1wqi(FjyJJD*Y@bq-B5Tx&%t259X@{VMida18uV}_V{;i zTcf8{HM9*iQ@9bsRNU6I)5_6k9OJ)kYm9(>`9uY?iRF>$BKP{pLC04|<4k_;wgIS~>w#t6e9 z+1@_QFOY*+G+9PuIL;hXXw9r_AD%X)MZqKkxQ%|Mc$KdfxUU}-YwAP zjGhAbOFdm{+Z*iZCB7m-XPKO)bFWM}Z=46e0v~o`4OWN2aN%THm)s-j*PNplzz4-Z zBgz#p2sG!jE8rqMA7uJFFjFv8r@Cm);BCMy$^C%)BUN)*#-(AnNwlM<8PkaK&OG?^ z9D3D|$RPANkxKY8y~~^iKhz(i!VX~-+UIuGvS2Z+BD zmd#Q0ggj1i+=E8` zuzSOXFfks|oarc(z!EH&vb9ywWFu{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hfGu-Nevn=p_H*C}ASn7d&sFDefr-fLqLsEp?WGwB}Q?+C-T-AHF z_QSCfX0Hvx5z8YYyWKXAFO_hnnND`;37r~){Tq2+I329lNwiwvx>KHu1xF3(g zb0wl%rr(Z3C7p|csfezJU<3Uo3hP+PjVLrRvtc)Ewumlo+^I17_TA88E@OWwqn-%k slpAt5L3bsfj*a(m0>)TDtR2?Vxg?mWI|)_H(U~l6SNCgb5{@4H2Qy*7Z~y=R diff --git a/public/mix-manifest.json b/public/mix-manifest.json index 99c7f7ce2105421c3291e2b90ad3cefcd63de3be..53dd3292b681f94ad9935ca1b6ada65aedd29783 100644 GIT binary patch delta 32 ncmbO)IA3r>JBNgcX>zK8QCgZoYEq(kqGh5*Qd*i4S1lI+sVND% delta 32 ncmbO)IA3r>JBLJ~X|jQdrKw4psX>}~N>Wmqxrv1mS1lI+p(6 Date: Mon, 7 Jun 2021 23:33:36 -0600 Subject: [PATCH 4/4] Update changelog --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) 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