From 17f6eb18e73a46c0268d9c7bc46f755ac5da1b6f Mon Sep 17 00:00:00 2001
From: lambda <pleromagit@rogerbraun.net>
Date: Thu, 12 Jul 2018 07:20:39 +0000
Subject: Revert "Merge branch 'cw-clickthrough' into 'develop'"

This reverts merge request !291
---
 src/components/status/status.vue | 36 +++---------------------------------
 1 file changed, 3 insertions(+), 33 deletions(-)

(limited to 'src/components/status/status.vue')

diff --git a/src/components/status/status.vue b/src/components/status/status.vue
index 2e33999a..f88c810d 100644
--- a/src/components/status/status.vue
+++ b/src/components/status/status.vue
@@ -73,22 +73,11 @@
 
           <div :class="{'tall-status': hideTallStatus}" class="status-content-wrapper">
             <a class="tall-status-hider" :class="{ 'tall-status-hider_focused': isFocused }" v-if="hideTallStatus" href="#" @click.prevent="toggleShowTall">Show more</a>
-            <div v-if="status.summary" @click.prevent="linkClicked" class="status-content media-body">
-              <div class="contentWarningLabel">
-                <span v-html="status.summary"></span>
-                <span v-if="clickThroughContentWarningsEnabled">
-                  <button v-if="showingContentWarningContent" @click.prevent="toggleContentWarningContent">Hide</button>
-                  <button v-else @click.prevent="toggleContentWarningContent">Show</button>
-                </span>
-              </div>
-              <div v-if="showingContentWarningContent || !clickThroughContentWarningsEnabled" v-html="status.content" class="contentWarnedContent"></div>
-              <div v-else class="hiddenContent" @click.prevent="toggleContentWarningContent">Click to view this post.<span v-if="status.attachments && status.attachments.length > 0"> (has attachments)</span></div>
-            </div>
-            <div v-else @click.prevent="linkClicked" class="status-content media-body" v-html="status.statusnet_html"></div>
+            <div @click.prevent="linkClicked" class="status-content media-body" v-html="status.statusnet_html"></div>
             <a v-if="showingTall" href="#" class="tall-status-unhider" @click.prevent="toggleShowTall">Show less</a>
           </div>
 
-          <div v-if='status.attachments && (!status.summary || showingContentWarningContent || !clickThroughContentWarningsEnabled)' class='attachments media-body'>
+          <div v-if='status.attachments' class='attachments media-body'>
             <attachment :size="attachmentSize" :status-id="status.id" :nsfw="status.nsfw" :attachment="attachment" v-for="attachment in status.attachments" :key="attachment.id">
             </attachment>
           </div>
@@ -107,13 +96,7 @@
       </div>
       <div class="container" v-if="replying">
         <div class="reply-left"/>
-        <post-status-form class="reply-body"
-          :reply-to="status.id"
-          :attentions="status.attentions" 
-          :repliedUser="status.user" 
-          :message-scope="status.visibility" 
-          :parentSpoilerText="status.summary"
-          v-on:posted="toggleReplying"/>
+        <post-status-form class="reply-body" :reply-to="status.id" :attentions="status.attentions" :repliedUser="status.user" :message-scope="status.visibility" v-on:posted="toggleReplying"/>
       </div>
     </template>
   </div>
@@ -505,17 +488,4 @@ a.unmute {
   }
 }
 
-.hiddenContent {
-  margin: 8px;
-  padding: 32px;
-  background: var(--lightBg, $fallback--lightBg);
-  border-radius: var(--panelRadius, $fallback--panelRadius);
-}
-.status-el_focused * .hiddenContent {
-  background: var(--bg, $fallback--bg);
-}
-.contentWarnedContent {
-  margin: 8px;
-}
-
 </style>
-- 
cgit v1.2.3-70-g09d2

