Commit 03f7c439 authored by Wim Vanderbauwhede's avatar Wim Vanderbauwhede

Patch to add image descriptions

parent 86a4116c
Pipeline #5991 passed with stages
in 3 minutes and 57 seconds
......@@ -63,12 +63,12 @@ const PostStatusForm = {
posting: false,
highlighted: 0,
newStatus: {
spoilerText: this.subject || '',
spoilerText: this.subject || '',
status: statusText,
contentType: 'text/plain',
nsfw: false,
files: [],
imageDescriptions:{},
imageDescriptions: {},
visibility: scope
},
caret: 0
......@@ -231,9 +231,9 @@ const PostStatusForm = {
return
}
}
this.posting = true
statusPoster.postStatus({
status: newStatus.status,
spoilerText: newStatus.spoilerText || null,
......@@ -266,9 +266,8 @@ const PostStatusForm = {
})
},
addMediaFile (fileInfo) {
this.newStatus.files.push(fileInfo)
this.newStatus.imageDescriptions[fileInfo.id]=fileInfo.url.split('/').pop() // WV: filename as default
this.newStatus.imageDescriptions[fileInfo.id] = fileInfo.url.split('/').pop() // WV: filename as default
this.enableSubmit()
},
removeMediaFile (fileInfo) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment