From b15651ee49c7d0590be54ecd9ec1d3264ceb40c5 Mon Sep 17 00:00:00 2001 From: Luxray5474 Date: Sun, 30 Aug 2020 21:28:32 -0400 Subject: [PATCH] Reverted client-side JS modifications --- client/js/controllers/post_upload_controller.js | 6 ------ client/js/models/post.js | 4 ---- client/js/views/post_upload_view.js | 4 ---- 3 files changed, 14 deletions(-) diff --git a/client/js/controllers/post_upload_controller.js b/client/js/controllers/post_upload_controller.js index 4c4ec68f..770ca892 100644 --- a/client/js/controllers/post_upload_controller.js +++ b/client/js/controllers/post_upload_controller.js @@ -174,12 +174,6 @@ class PostUploadController { post.newContent = uploadable.url || uploadable.file; // if uploadable.source is ever going to be a valid field (e.g when setting source directly in the upload window) // you'll need to change the line below to `post.source = uploadable.source || uploadable.url;` - if (uploadable.url) { - // For now, if the input is a URL, flmt will be same as creation date - post.source = uploadable.url; - } else { - post.fileLastModifiedTime = uploadable.file.lastModified; - } return post; } } diff --git a/client/js/models/post.js b/client/js/models/post.js index 59b34189..9f0ad745 100644 --- a/client/js/models/post.js +++ b/client/js/models/post.js @@ -42,10 +42,6 @@ class Post extends events.EventTarget { return this._creationTime; } - get fileLastModifiedTime() { - return this._fileLastModifiedTime; - } - get user() { return this._user; } diff --git a/client/js/views/post_upload_view.js b/client/js/views/post_upload_view.js index 0610e57b..7daf4fb0 100644 --- a/client/js/views/post_upload_view.js +++ b/client/js/views/post_upload_view.js @@ -82,10 +82,6 @@ class File extends Uploadable { return this.file.type; } - get fileLastModifiedTime() { - return this.file.fileLastModifiedTime; - } - get previewUrl() { return this._previewUrl; }