Reverted client-side JS modifications
This commit is contained in:
parent
4b73227645
commit
b15651ee49
3 changed files with 0 additions and 14 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -42,10 +42,6 @@ class Post extends events.EventTarget {
|
|||
return this._creationTime;
|
||||
}
|
||||
|
||||
get fileLastModifiedTime() {
|
||||
return this._fileLastModifiedTime;
|
||||
}
|
||||
|
||||
get user() {
|
||||
return this._user;
|
||||
}
|
||||
|
|
|
@ -82,10 +82,6 @@ class File extends Uploadable {
|
|||
return this.file.type;
|
||||
}
|
||||
|
||||
get fileLastModifiedTime() {
|
||||
return this.file.fileLastModifiedTime;
|
||||
}
|
||||
|
||||
get previewUrl() {
|
||||
return this._previewUrl;
|
||||
}
|
||||
|
|
Reference in a new issue