From e3f5fc65193ae95cc3a55c731e622b29c8146a0c Mon Sep 17 00:00:00 2001 From: trivernis Date: Thu, 23 Jan 2020 16:42:19 +0100 Subject: [PATCH] Fix checking for video instead of image --- src/app/services/feed/feed.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/services/feed/feed.service.ts b/src/app/services/feed/feed.service.ts index 2686fd4..3c924fd 100644 --- a/src/app/services/feed/feed.service.ts +++ b/src/app/services/feed/feed.service.ts @@ -185,7 +185,7 @@ export class FeedService extends BaseService { if (file) { this.uploadPostImage(post.id, file).subscribe((result) => { post.mediaUrl = result.fileName; - post.mediaType = result.fileName.endsWith('.webm') ? 'VIDEO' : 'IMAGE'; + post.mediaType = result.fileName.endsWith('.png') ? 'IMAGE' : 'VIDEO'; this.posts.next(updatedPosts); }, error => { console.error(error);