From 4f89f6f7f13aef535c05b91d72e48c8c38209c99 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sun, 4 Feb 2018 12:07:22 -0800 Subject: [PATCH] refactor isStatusInOwnThread --- routes/_components/status/Status.html | 6 +++--- routes/_components/status/StatusAuthor.html | 2 +- routes/_components/status/StatusContent.html | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/routes/_components/status/Status.html b/routes/_components/status/Status.html index ea8fa07a..bb19f050 100644 --- a/routes/_components/status/Status.html +++ b/routes/_components/status/Status.html @@ -1,11 +1,11 @@ -
{{#if (notification && (notification.type === 'reblog' || notification.type === 'favourite')) || status.reblog}} {{/if}} - + {{#if originalStatus.spoiler_text}} @@ -73,7 +73,7 @@ originalStatus: (status) => status.reblog ? status.reblog : status, statusId: (originalStatus) => originalStatus.id, hasMedia: (originalStatus) => originalStatus.media_attachments && originalStatus.media_attachments.length, - isStatusInContext: (timelineType, timelineValue, statusId) => timelineType === 'status' && timelineValue === statusId, + isStatusInOwnThread: (timelineType, timelineValue, statusId) => timelineType === 'status' && timelineValue === statusId, originalAccount: (originalStatus) => originalStatus.account, spoilerShown: ($spoilersShown, $currentInstance, statusId) => $spoilersShown && $spoilersShown[$currentInstance] && $spoilersShown[$currentInstance][statusId] } diff --git a/routes/_components/status/StatusAuthor.html b/routes/_components/status/StatusAuthor.html index 66b38959..1e0c1d3d 100644 --- a/routes/_components/status/StatusAuthor.html +++ b/routes/_components/status/StatusAuthor.html @@ -5,7 +5,7 @@ {{'@' + status.account.acct}} - {{#if isStatusInContext}} + {{#if isStatusInOwnThread}} diff --git a/routes/_components/status/StatusContent.html b/routes/_components/status/StatusContent.html index e088d151..230e9d7b 100644 --- a/routes/_components/status/StatusContent.html +++ b/routes/_components/status/StatusContent.html @@ -11,7 +11,7 @@ font-size: 0.9em; } - .status-in-context .status-content { + .status-in-own-thread .status-content { font-size: 1.3em; margin: 20px 10px 20px 5px; }