Skip to content

Commit

Permalink
Update steem/post
Browse files Browse the repository at this point in the history
  • Loading branch information
denis-skripnik committed Jan 11, 2021
1 parent 3c4d155 commit f1e1bba
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
var author = steem_login;

function bind_range(){
$('input[type=range]').each(function(i){
if(typeof $(this).attr('data-fixed') !== 'undefined'){
Expand Down Expand Up @@ -334,9 +336,7 @@ updateText();
function fillContent(err, result) {
if(err)return alert('Не найден пост ',Author, Permlink);
console.log(result);

var jmeta = JSON.parse(result.json_metadata);

var jmeta = JSON.parse(result.json_metadata);
$('#content_title').val(result.title);
$('#content_tags').val(jmeta.tags.join(' '));
$('#content_image').val(jmeta.image.join(' '));
Expand Down Expand Up @@ -430,7 +430,8 @@ function postSender(isEdit) {
if (isEdit === true) {
var q = window.confirm('Пост с таким permlink уже есть. его отправка повлечёт не создание нового, а изменение старого поста. Вы действительно хотите это сделать?')
if (q === true) {
const operations = [
var wif = posting_key;
const operations = [
['comment', {'parent_author':'','parent_permlink':parentPermlink,'author':author,'permlink':permlink,'title':title,'body':body,'json_metadata':JSON.stringify(jsonMetadata)}]];

steem.broadcast.send({extensions: [], operations}, [wif], function(err, res) {
Expand Down

0 comments on commit f1e1bba

Please sign in to comment.