From a25dd048b61a22713f5022150d3f7816cd1be7e3 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Thu, 15 Mar 2018 20:04:24 -0700 Subject: [PATCH] make statuses robust against duplicates, remove duplicate from test --- bin/mastodon-data.js | 4 -- routes/_components/status/Notification.html | 16 ++++- routes/_components/status/Status.html | 60 ++++++++++++------- .../status/StatusAuthorHandle.html | 2 +- .../_components/status/StatusAuthorName.html | 7 +-- routes/_components/status/StatusContent.html | 27 ++++----- routes/_components/status/StatusDetails.html | 17 +++--- routes/_components/status/StatusHeader.html | 14 +---- .../status/StatusMediaAttachments.html | 18 +++--- .../status/StatusRelativeDate.html | 12 ++-- routes/_components/status/StatusSidebar.html | 2 +- routes/_components/status/StatusSpoiler.html | 11 ++-- routes/_components/status/StatusToolbar.html | 48 +++++++-------- routes/_components/timeline/Timeline.html | 2 +- 14 files changed, 128 insertions(+), 112 deletions(-) diff --git a/bin/mastodon-data.js b/bin/mastodon-data.js index 46584d2..d1bd2a8 100644 --- a/bin/mastodon-data.js +++ b/bin/mastodon-data.js @@ -186,10 +186,6 @@ export const actions = times(30, i => ({ privacy: 'unlisted' } }, - { - user: 'admin', - boost: 'notification-of-unlisted-message' - }, { user: 'admin', boost: 'foobar-this-is-unlisted' diff --git a/routes/_components/status/Notification.html b/routes/_components/status/Notification.html index 78777b2..64e57b9 100644 --- a/routes/_components/status/Notification.html +++ b/routes/_components/status/Notification.html @@ -10,7 +10,8 @@ aria-posinset="{{index}}" aria-setsize="{{length}}" >
- +
{{/if}} @@ -35,10 +36,23 @@ \ No newline at end of file diff --git a/routes/_components/status/Status.html b/routes/_components/status/Status.html index 0a2978b..6d61b3c 100644 --- a/routes/_components/status/Status.html +++ b/routes/_components/status/Status.html @@ -7,29 +7,34 @@ aria-label="{{ariaLabel}}" on:recalculateHeight> {{#if showHeader}} - + {{/if}} - - + + {{#if !isStatusInOwnThread}} - + {{/if}} - + {{#if originalStatus.spoiler_text}} - {{/if}} {{#if !originalStatus.spoiler_text || spoilerShown}} - + {{/if}} {{#if originalStatus.media_attachments && originalStatus.media_attachments.length}} - + {{/if}} {{#if isStatusInOwnThread}} - + {{/if}} - +