Created
May 19, 2017 03:58
-
-
Save neet/6287e1516df5ac3a3e9569a3ac5e000e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
api.postImage("media", formData, function (postimage) { | |
media_array.unshift(postimage.id); | |
var params = { | |
status : form.status_textarea.value, | |
sensitive : form.status_nsfw.value, | |
spoiler_text : form.status_spoiler.value, | |
visibility : form.privacy_option.value, | |
media_ids : media_array | |
} | |
api.post("statuses", params, function (data) { | |
timeline_template(data).prependTo("#js-timeline"); | |
replaceInternalLink(); | |
replace_emoji(); | |
$('#header_status_form .expand_privacy_menu_button > i').attr('class', 'fa fa-globe'); | |
form.reset(); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment