From 3862f48c34a00691a12c6002abd88b088cf7c13e Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Tue, 23 Jul 2019 16:48:08 -0500 Subject: add self-destructing roars & `live`/`lifespan` bangtags --- .../features/status/components/detailed_status.js | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'app/javascript/flavours/glitch/features/status/components/detailed_status.js') diff --git a/app/javascript/flavours/glitch/features/status/components/detailed_status.js b/app/javascript/flavours/glitch/features/status/components/detailed_status.js index e9bbcaa90..f8f5e053c 100644 --- a/app/javascript/flavours/glitch/features/status/components/detailed_status.js +++ b/app/javascript/flavours/glitch/features/status/components/detailed_status.js @@ -17,6 +17,15 @@ import classNames from 'classnames'; import PollContainer from 'flavours/glitch/containers/poll_container'; import { me } from 'flavours/glitch/util/initial_state'; +const dateFormatOptions = { + month: 'numeric', + day: 'numeric', + year: 'numeric', + hour12: false, + hour: '2-digit', + minute: '2-digit', +}; + export default class DetailedStatus extends ImmutablePureComponent { static contextTypes = { @@ -119,6 +128,7 @@ export default class DetailedStatus extends ImmutablePureComponent { let reblogIcon = 'repeat'; let favouriteLink = ''; let sharekeyLinks = ''; + let destructIcon = ''; if (this.props.measureHeight) { outerStyle.height = `${this.state.height}px`; @@ -233,6 +243,14 @@ export default class DetailedStatus extends ImmutablePureComponent { ); } + if (status.get('delete_after')) { + destructIcon = ( + + · + + ) + } + return (
@@ -254,7 +272,7 @@ export default class DetailedStatus extends ImmutablePureComponent { />
- {sharekeyLinks} {reblogLink} · {favouriteLink} · + {sharekeyLinks} {reblogLink} · {favouriteLink} · {destructIcon} -- cgit