Fix: Add currentUser for pin-form creation page

This commit is contained in:
winkidney
2019-04-28 16:57:56 +08:00
parent 8ef4f43f3b
commit 12d3811af9

View File

@@ -27,7 +27,8 @@ $(window).load(function() {
image: {thumbnail: {image: $('#pin-form-image-url').val()}},
referer: $('#pin-form-referer').val(),
description: $('#pin-form-description').val(),
tags: cleanTags($('#pin-form-tags').val())
tags: cleanTags($('#pin-form-tags').val()),
submitter: currentUser,
}]},
html = renderTemplate('#pins-template', context),
preview = $('#pin-form-image-preview');