From 809cbf6c0204fbbab4848f57cb8bbdc51924e6cf Mon Sep 17 00:00:00 2001 From: Jeroen Smeets Date: Mon, 15 May 2017 10:10:08 +0200 Subject: [PATCH] fixed display of spoilers in timelines --- Classes/Class.Post.ux | 35 +++++++++++++++++++---------------- Pages/WritePage.js | 8 ++++++++ Pages/WritePage.ux | 10 ++++++---- 3 files changed, 33 insertions(+), 20 deletions(-) diff --git a/Classes/Class.Post.ux b/Classes/Class.Post.ux index 9a34806..6e5b720 100644 --- a/Classes/Class.Post.ux +++ b/Classes/Class.Post.ux @@ -4,7 +4,6 @@ - @@ -153,25 +152,29 @@ - - - - - - - - - - + + + + + + + + + + + + - - + + - - - + + + + + diff --git a/Pages/WritePage.js b/Pages/WritePage.js index 864950b..7cfde7f 100644 --- a/Pages/WritePage.js +++ b/Pages/WritePage.js @@ -58,11 +58,15 @@ function doToot() { return; } + console.log( 2 ); + var _spoiler = ''; if ( showSpoilerText.value && ( '' != spoilerText.value.replace(/\s+/g, '') ) ) { _spoiler = spoilerText.value; } + console.log( 3 ); + var _media_ids = []; // console.log( 'media_attachments has length ' + media_attachments.length ); media_attachments.forEach( function( item ) { @@ -70,6 +74,10 @@ function doToot() { _media_ids.push( item.id ); }); + console.log( 4 ); + + return; + api.sendPost( txtToToot.value, inReplyToPostId.value, _media_ids, tootVisibility.value, isSensitive.value, _spoiler diff --git a/Pages/WritePage.ux b/Pages/WritePage.ux index 2a5e565..b93c794 100644 --- a/Pages/WritePage.ux +++ b/Pages/WritePage.ux @@ -73,9 +73,6 @@ - - - @@ -84,9 +81,14 @@ + - + + + + +