mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-25 17:26:43 +00:00
Update PostComponent.vue, filter out non text comments
This commit is contained in:
parent
adb1f150f3
commit
a7346f2145
1 changed files with 4 additions and 4 deletions
|
@ -1030,7 +1030,7 @@ export default {
|
||||||
self.media = self.status.media_attachments;
|
self.media = self.status.media_attachments;
|
||||||
self.content = response.data.status.content;
|
self.content = response.data.status.content;
|
||||||
self.status.emojis.forEach(function(emoji) {
|
self.status.emojis.forEach(function(emoji) {
|
||||||
let img = `<img draggable="false" class="emojione custom-emoji" alt="${emoji.shortcode}" title="${emoji.shortcode}" src="${emoji.url}" data-original="${emoji.url}" data-static="${emoji.static_url}" width="18" height="18" />`;
|
let img = `<img draggable="false" class="emojione custom-emoji" alt="${emoji.shortcode}" title="${emoji.shortcode}" src="${emoji.url}" data-original="${emoji.url}" data-static="${emoji.static_url}" width="18" height="18" onerror="this.onerror=null;this.src='/storage/emoji/missing.png';" />`;
|
||||||
self.content = self.content.replace(`:${emoji.shortcode}:`, img);
|
self.content = self.content.replace(`:${emoji.shortcode}:`, img);
|
||||||
});
|
});
|
||||||
self.likesPage = 2;
|
self.likesPage = 2;
|
||||||
|
@ -1384,9 +1384,9 @@ export default {
|
||||||
axios.get(url)
|
axios.get(url)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
let self = this;
|
let self = this;
|
||||||
this.results = this.layout == 'metro' ?
|
this.results = response.data.data.filter(p => {
|
||||||
_.reverse(response.data.data) :
|
return p.pf_type == 'text';
|
||||||
response.data.data;
|
});
|
||||||
this.pagination = response.data.meta.pagination;
|
this.pagination = response.data.meta.pagination;
|
||||||
if(this.results.length > 0) {
|
if(this.results.length > 0) {
|
||||||
$('.load-more-link').removeClass('d-none');
|
$('.load-more-link').removeClass('d-none');
|
||||||
|
|
Loading…
Reference in a new issue