diff --git a/CHANGELOG.md b/CHANGELOG.md index d24990a8b..d33fea638 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,6 +39,8 @@ - Updated ApiV1Controller, add validation messages to update_credentials endpoint. ([cd785601](https://github.com/pixelfed/pixelfed/commit/cd785601)) - Updated ComposeController, improve location search results ordering by use frequency. ([29c4bd25](https://github.com/pixelfed/pixelfed/commit/29c4bd25)) - Updated AvatarController, fix mimetype bug. ([7fa9d4dc](https://github.com/pixelfed/pixelfed/commit/7fa9d4dc)) +- Updated PostComponent.vue, filter out non-text comments. ([a7346f21](https://github.com/pixelfed/pixelfed/commit/a7346f21)) +- Update Profile.vue component, fix v-once bug. ([4d003d00](https://github.com/pixelfed/pixelfed/commit/4d003d00)) - ([](https://github.com/pixelfed/pixelfed/commit/)) ## [v0.11.2 (2022-01-09)](https://github.com/pixelfed/pixelfed/compare/v0.11.1...v0.11.2) diff --git a/public/js/profile.js b/public/js/profile.js index c2d4681e2..8e97da26c 100644 Binary files a/public/js/profile.js and b/public/js/profile.js differ diff --git a/public/js/spa.js b/public/js/spa.js index 0147bdcf6..87a550aeb 100644 Binary files a/public/js/spa.js and b/public/js/spa.js differ diff --git a/public/js/status.js b/public/js/status.js index 8250961f3..85ee13735 100644 Binary files a/public/js/status.js and b/public/js/status.js differ diff --git a/public/mix-manifest.json b/public/mix-manifest.json index b17d83d7a..5be95f911 100644 Binary files a/public/mix-manifest.json and b/public/mix-manifest.json differ diff --git a/resources/assets/js/components/PostComponent.vue b/resources/assets/js/components/PostComponent.vue index 9499cd8df..c271c805b 100644 --- a/resources/assets/js/components/PostComponent.vue +++ b/resources/assets/js/components/PostComponent.vue @@ -1030,7 +1030,7 @@ export default { self.media = self.status.media_attachments; self.content = response.data.status.content; self.status.emojis.forEach(function(emoji) { - let img = `${emoji.shortcode}`; + let img = `${emoji.shortcode}`; self.content = self.content.replace(`:${emoji.shortcode}:`, img); }); self.likesPage = 2; @@ -1384,9 +1384,9 @@ export default { axios.get(url) .then(response => { let self = this; - this.results = this.layout == 'metro' ? - _.reverse(response.data.data) : - response.data.data; + this.results = response.data.data.filter(p => { + return p.pf_type == 'text'; + }); this.pagination = response.data.meta.pagination; if(this.results.length > 0) { $('.load-more-link').removeClass('d-none'); diff --git a/resources/assets/js/components/Profile.vue b/resources/assets/js/components/Profile.vue index 7fe5ba75f..e3ce12629 100644 --- a/resources/assets/js/components/Profile.vue +++ b/resources/assets/js/components/Profile.vue @@ -192,7 +192,7 @@
- + @@ -541,7 +549,7 @@ }*/ if(this.config.ab.spa === true) { - this.showPromo = localStorage.getItem('pf_metro_ui.exp.spa') == 'false' ? false : true; + this.showPromo = localStorage.getItem('pf_metro_ui.exp.spa' + new Date().getMonth()) == 'false' ? false : true; } if(localStorage.getItem('pf_metro_ui.exp.rec') == 'false') { @@ -1086,7 +1094,7 @@ }, hidePromo() { - localStorage.setItem('pf_metro_ui.exp.spa', 'false'); + localStorage.setItem('pf_metro_ui.exp.spa' + new Date().getMonth(), 'false'); this.showPromo = false; } }, diff --git a/resources/assets/js/components/partials/StatusCard.vue b/resources/assets/js/components/partials/StatusCard.vue index 0b60723b2..375799838 100644 --- a/resources/assets/js/components/partials/StatusCard.vue +++ b/resources/assets/js/components/partials/StatusCard.vue @@ -250,7 +250,7 @@ this.profile = window._sharedData.curUser; this.content = this.status.content; this.status.emojis.forEach(function(emoji) { - let img = `${emoji.shortcode}`; + let img = `${emoji.shortcode}`; self.content = self.content.replace(`:${emoji.shortcode}:`, img); }); }, diff --git a/resources/assets/js/components/presenter/PhotoAlbumPresenter.vue b/resources/assets/js/components/presenter/PhotoAlbumPresenter.vue index 07da4785d..35b78fe7e 100644 --- a/resources/assets/js/components/presenter/PhotoAlbumPresenter.vue +++ b/resources/assets/js/components/presenter/PhotoAlbumPresenter.vue @@ -25,7 +25,13 @@ - +