Reverted client-side JS modifications

This commit is contained in:
Luxray5474 2020-08-30 21:28:32 -04:00
parent 4b73227645
commit b15651ee49
3 changed files with 0 additions and 14 deletions

View file

@ -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;
}
}

View file

@ -42,10 +42,6 @@ class Post extends events.EventTarget {
return this._creationTime;
}
get fileLastModifiedTime() {
return this._fileLastModifiedTime;
}
get user() {
return this._user;
}

View file

@ -82,10 +82,6 @@ class File extends Uploadable {
return this.file.type;
}
get fileLastModifiedTime() {
return this.file.fileLastModifiedTime;
}
get previewUrl() {
return this._previewUrl;
}