From 4ae052c6a0fa64a2e8d18625ecea00228f32b959 Mon Sep 17 00:00:00 2001 From: Cyrille Bollu Date: Mon, 15 Jul 2019 15:13:35 +0200 Subject: [PATCH] Fixes some lint warnings/errors. Signed-off-by: Cyrille Bollu --- src/components/PostAttachment.vue | 6 ++++-- src/components/TimelinePost.vue | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/PostAttachment.vue b/src/components/PostAttachment.vue index 47c69f5f..00565c85 100644 --- a/src/components/PostAttachment.vue +++ b/src/components/PostAttachment.vue @@ -1,6 +1,6 @@ @@ -10,7 +10,9 @@ export default { components: { }, mixins: [], - props: ['id'], + props: { + id: String, + }, data() { return { } diff --git a/src/components/TimelinePost.vue b/src/components/TimelinePost.vue index d67ffe95..4b0ee2cc 100644 --- a/src/components/TimelinePost.vue +++ b/src/components/TimelinePost.vue @@ -25,7 +25,7 @@
- +
@@ -124,7 +124,7 @@ export default { return OC.generateUrl('/apps/social/api/v1/global/actor/avatar?id=' + this.item.attributedTo) }, hasAttachments() { - return (typeof this.item.attachment === 'undefined') ? false : true; + return (typeof this.item.attachment !== 'undefined') }, isBoosted() { if (typeof this.item.action === 'undefined') {