2017-04-21 14:05:35 -04:00
import PropTypes from 'prop-types' ;
2023-05-23 11:15:17 -04:00
import { defineMessages , injectIntl , FormattedMessage } from 'react-intl' ;
2017-11-07 08:24:55 -05:00
import classNames from 'classnames' ;
2023-05-23 11:15:17 -04:00
import { Helmet } from 'react-helmet' ;
2023-10-19 13:44:55 -04:00
import { withRouter } from 'react-router-dom' ;
2023-05-23 11:15:17 -04:00
2024-01-08 05:57:40 -05:00
import { createSelector } from '@reduxjs/toolkit' ;
2023-05-23 11:15:17 -04:00
import Immutable from 'immutable' ;
2017-02-17 20:37:59 -05:00
import ImmutablePropTypes from 'react-immutable-proptypes' ;
2023-05-23 11:15:17 -04:00
import ImmutablePureComponent from 'react-immutable-pure-component' ;
import { connect } from 'react-redux' ;
2023-10-24 13:45:08 -04:00
import { ReactComponent as VisibilityIcon } from '@material-symbols/svg-600/outlined/visibility.svg' ;
import { ReactComponent as VisibilityOffIcon } from '@material-symbols/svg-600/outlined/visibility_off.svg' ;
2023-05-23 11:15:17 -04:00
import { HotKeys } from 'react-hotkeys' ;
import { Icon } from 'mastodon/components/icon' ;
2023-06-13 13:26:25 -04:00
import { LoadingIndicator } from 'mastodon/components/loading_indicator' ;
2023-05-23 11:15:17 -04:00
import ScrollContainer from 'mastodon/containers/scroll_container' ;
import BundleColumnError from 'mastodon/features/ui/components/bundle_column_error' ;
2023-10-19 13:44:55 -04:00
import { WithRouterPropTypes } from 'mastodon/utils/react_router' ;
2023-05-23 11:15:17 -04:00
2017-02-17 20:37:59 -05:00
import {
2023-05-23 11:15:17 -04:00
unblockAccount ,
unmuteAccount ,
} from '../../actions/accounts' ;
import { initBlockModal } from '../../actions/blocks' ;
import { initBoostModal } from '../../actions/boosts' ;
2016-10-24 11:11:02 -04:00
import {
replyCompose ,
2017-05-20 11:31:47 -04:00
mentionCompose ,
2018-04-09 11:09:11 -04:00
directCompose ,
2017-02-17 20:37:59 -05:00
} from '../../actions/compose' ;
2019-11-19 15:24:16 -05:00
import {
blockDomain ,
unblockDomain ,
} from '../../actions/domain_blocks' ;
2023-05-23 11:15:17 -04:00
import {
favourite ,
unfavourite ,
bookmark ,
unbookmark ,
reblog ,
unreblog ,
pin ,
unpin ,
} from '../../actions/interactions' ;
import { openModal } from '../../actions/modal' ;
2017-12-25 14:56:05 -05:00
import { initMuteModal } from '../../actions/mutes' ;
2017-02-14 14:59:26 -05:00
import { initReport } from '../../actions/reports' ;
2023-05-23 11:15:17 -04:00
import {
fetchStatus ,
muteStatus ,
unmuteStatus ,
deleteStatus ,
editStatus ,
hideStatus ,
revealStatus ,
translateStatus ,
undoStatusTranslation ,
} from '../../actions/statuses' ;
2018-03-11 04:52:59 -04:00
import ColumnHeader from '../../components/column_header' ;
2023-05-23 11:15:17 -04:00
import { textForScreenReader , defaultMediaVisibility } from '../../components/status' ;
2017-02-17 20:37:59 -05:00
import StatusContainer from '../../containers/status_container' ;
2022-10-08 21:55:09 -04:00
import { boostModal , deleteModal } from '../../initial_state' ;
2023-05-23 11:15:17 -04:00
import { makeGetStatus , makeGetPictureInPicture } from '../../selectors' ;
import Column from '../ui/components/column' ;
2018-07-29 10:52:06 -04:00
import { attachFullscreenListener , detachFullscreenListener , isFullscreen } from '../ui/util/fullscreen' ;
2023-05-23 11:15:17 -04:00
import ActionBar from './components/action_bar' ;
import DetailedStatus from './components/detailed_status' ;
2017-04-22 22:39:50 -04:00
2023-10-19 13:44:55 -04:00
2017-04-22 22:39:50 -04:00
const messages = defineMessages ( {
deleteConfirm : { id : 'confirmations.delete.confirm' , defaultMessage : 'Delete' } ,
2017-05-20 11:31:47 -04:00
deleteMessage : { id : 'confirmations.delete.message' , defaultMessage : 'Are you sure you want to delete this status?' } ,
2018-06-04 18:17:38 -04:00
redraftConfirm : { id : 'confirmations.redraft.confirm' , defaultMessage : 'Delete & redraft' } ,
2023-07-21 13:09:13 -04:00
redraftMessage : { id : 'confirmations.redraft.message' , defaultMessage : 'Are you sure you want to delete this status and re-draft it? Favorites and boosts will be lost, and replies to the original post will be orphaned.' } ,
2018-03-11 04:52:59 -04:00
revealAll : { id : 'status.show_more_all' , defaultMessage : 'Show more for all' } ,
hideAll : { id : 'status.show_less_all' , defaultMessage : 'Show less for all' } ,
2023-04-24 02:07:19 -04:00
statusTitleWithAttachments : { id : 'status.title.with_attachments' , defaultMessage : '{user} posted {attachmentCount, plural, one {an attachment} other {# attachments}}' } ,
2018-08-23 11:26:21 -04:00
detailedStatus : { id : 'status.detailed_status' , defaultMessage : 'Detailed conversation view' } ,
2018-10-05 12:44:44 -04:00
replyConfirm : { id : 'confirmations.reply.confirm' , defaultMessage : 'Reply' } ,
replyMessage : { id : 'confirmations.reply.message' , defaultMessage : 'Replying now will overwrite the message you are currently composing. Are you sure you want to proceed?' } ,
2023-05-24 06:38:50 -04:00
blockDomainConfirm : { id : 'confirmations.domain_block.confirm' , defaultMessage : 'Block entire domain' } ,
2017-04-22 22:39:50 -04:00
} ) ;
2016-09-15 18:21:51 -04:00
2016-10-24 11:11:02 -04:00
const makeMapStateToProps = ( ) => {
const getStatus = makeGetStatus ( ) ;
2020-12-07 13:36:36 -05:00
const getPictureInPicture = makeGetPictureInPicture ( ) ;
2016-10-24 11:11:02 -04:00
2019-07-02 10:03:54 -04:00
const getAncestorsIds = createSelector ( [
( _ , { id } ) => id ,
state => state . getIn ( [ 'contexts' , 'inReplyTos' ] ) ,
] , ( statusId , inReplyTos ) => {
2018-05-25 12:46:28 -04:00
let ancestorsIds = Immutable . List ( ) ;
2019-07-02 10:03:54 -04:00
ancestorsIds = ancestorsIds . withMutations ( mutable => {
let id = statusId ;
2021-11-25 17:46:39 -05:00
while ( id && ! mutable . includes ( id ) ) {
2019-07-02 10:03:54 -04:00
mutable . unshift ( id ) ;
id = inReplyTos . get ( id ) ;
}
} ) ;
return ancestorsIds ;
} ) ;
const getDescendantsIds = createSelector ( [
( _ , { id } ) => id ,
state => state . getIn ( [ 'contexts' , 'replies' ] ) ,
2019-08-29 19:57:38 -04:00
state => state . get ( 'statuses' ) ,
] , ( statusId , contextReplies , statuses ) => {
let descendantsIds = [ ] ;
const ids = [ statusId ] ;
2018-05-25 12:46:28 -04:00
2019-08-29 19:57:38 -04:00
while ( ids . length > 0 ) {
2021-11-25 17:46:39 -05:00
let id = ids . pop ( ) ;
2019-08-29 19:57:38 -04:00
const replies = contextReplies . get ( id ) ;
2018-05-25 12:46:28 -04:00
2019-08-29 19:57:38 -04:00
if ( statusId !== id ) {
descendantsIds . push ( id ) ;
}
2018-05-25 12:46:28 -04:00
2019-08-29 19:57:38 -04:00
if ( replies ) {
replies . reverse ( ) . forEach ( reply => {
2021-11-25 17:46:39 -05:00
if ( ! ids . includes ( reply ) && ! descendantsIds . includes ( reply ) && statusId !== reply ) ids . push ( reply ) ;
2019-08-29 19:57:38 -04:00
} ) ;
2019-07-02 10:03:54 -04:00
}
2019-08-29 19:57:38 -04:00
}
let insertAt = descendantsIds . findIndex ( ( id ) => statuses . get ( id ) . get ( 'in_reply_to_account_id' ) !== statuses . get ( id ) . get ( 'account' ) ) ;
if ( insertAt !== - 1 ) {
descendantsIds . forEach ( ( id , idx ) => {
if ( idx > insertAt && statuses . get ( id ) . get ( 'in_reply_to_account_id' ) === statuses . get ( id ) . get ( 'account' ) ) {
descendantsIds . splice ( idx , 1 ) ;
descendantsIds . splice ( insertAt , 0 , id ) ;
insertAt += 1 ;
}
} ) ;
}
2018-05-27 20:42:06 -04:00
2019-08-29 19:57:38 -04:00
return Immutable . List ( descendantsIds ) ;
2019-07-02 10:03:54 -04:00
} ) ;
2018-05-25 12:46:28 -04:00
2019-07-02 10:03:54 -04:00
const mapStateToProps = ( state , props ) => {
const status = getStatus ( state , { id : props . params . statusId } ) ;
2020-12-07 13:36:36 -05:00
let ancestorsIds = Immutable . List ( ) ;
2019-07-02 10:03:54 -04:00
let descendantsIds = Immutable . List ( ) ;
2018-06-03 22:19:16 -04:00
2019-07-02 10:03:54 -04:00
if ( status ) {
2020-12-07 13:36:36 -05:00
ancestorsIds = getAncestorsIds ( state , { id : status . get ( 'in_reply_to_id' ) } ) ;
2019-07-02 10:03:54 -04:00
descendantsIds = getDescendantsIds ( state , { id : status . get ( 'id' ) } ) ;
2018-05-25 12:46:28 -04:00
}
return {
2022-10-20 08:35:29 -04:00
isLoading : state . getIn ( [ 'statuses' , props . params . statusId , 'isLoading' ] ) ,
2018-05-25 12:46:28 -04:00
status ,
ancestorsIds ,
descendantsIds ,
2018-10-05 12:44:44 -04:00
askReplyConfirmation : state . getIn ( [ 'compose' , 'text' ] ) . trim ( ) . length !== 0 ,
2019-01-17 08:06:08 -05:00
domain : state . getIn ( [ 'meta' , 'domain' ] ) ,
2020-12-07 13:36:36 -05:00
pictureInPicture : getPictureInPicture ( state , { id : props . params . statusId } ) ,
2018-05-25 12:46:28 -04:00
} ;
} ;
2016-10-24 11:11:02 -04:00
return mapStateToProps ;
} ;
2016-09-15 18:21:51 -04:00
2022-09-28 22:39:33 -04:00
const truncate = ( str , num ) => {
2023-05-29 05:55:16 -04:00
const arr = Array . from ( str ) ;
if ( arr . length > num ) {
return arr . slice ( 0 , num ) . join ( '' ) + '…' ;
2022-09-28 22:39:33 -04:00
} else {
return str ;
}
} ;
2023-04-14 11:29:09 -04:00
const titleFromStatus = ( intl , status ) => {
2022-09-28 22:39:33 -04:00
const displayName = status . getIn ( [ 'account' , 'display_name' ] ) ;
const username = status . getIn ( [ 'account' , 'username' ] ) ;
2023-04-14 11:29:09 -04:00
const user = displayName . trim ( ) . length === 0 ? username : displayName ;
2022-09-28 22:39:33 -04:00
const text = status . get ( 'search_index' ) ;
2023-04-14 11:29:09 -04:00
const attachmentCount = status . get ( 'media_attachments' ) . size ;
2022-09-28 22:39:33 -04:00
2023-04-14 11:29:09 -04:00
return text ? ` ${ user } : " ${ truncate ( text , 30 ) } " ` : intl . formatMessage ( messages . statusTitleWithAttachments , { user , attachmentCount } ) ;
2022-09-28 22:39:33 -04:00
} ;
2018-09-14 11:59:48 -04:00
class Status extends ImmutablePureComponent {
2017-04-21 14:05:35 -04:00
2017-05-12 08:44:10 -04:00
static contextTypes = {
2022-10-07 04:14:31 -04:00
identity : PropTypes . object ,
2017-05-12 08:44:10 -04:00
} ;
static propTypes = {
params : PropTypes . object . isRequired ,
dispatch : PropTypes . func . isRequired ,
status : ImmutablePropTypes . map ,
2022-10-20 08:35:29 -04:00
isLoading : PropTypes . bool ,
2023-07-21 07:14:30 -04:00
ancestorsIds : ImmutablePropTypes . list . isRequired ,
descendantsIds : ImmutablePropTypes . list . isRequired ,
2017-05-20 11:31:47 -04:00
intl : PropTypes . object . isRequired ,
2018-10-05 12:44:44 -04:00
askReplyConfirmation : PropTypes . bool ,
2019-08-01 06:26:58 -04:00
multiColumn : PropTypes . bool ,
2019-01-17 08:06:08 -05:00
domain : PropTypes . string . isRequired ,
2020-12-07 13:36:36 -05:00
pictureInPicture : ImmutablePropTypes . contains ( {
inUse : PropTypes . bool ,
available : PropTypes . bool ,
} ) ,
2023-10-19 13:44:55 -04:00
... WithRouterPropTypes
2017-05-12 08:44:10 -04:00
} ;
2016-09-15 18:21:51 -04:00
2017-11-07 08:24:55 -05:00
state = {
fullscreen : false ,
2019-05-26 07:48:16 -04:00
showMedia : defaultMediaVisibility ( this . props . status ) ,
2019-05-29 10:33:15 -04:00
loadedStatusId : undefined ,
2017-11-07 08:24:55 -05:00
} ;
2023-05-10 03:05:32 -04:00
UNSAFE _componentWillMount ( ) {
Change IDs to strings rather than numbers in API JSON output (#5019)
* Fix JavaScript interface with long IDs
Somewhat predictably, the JS interface handled IDs as numbers, which in
JS are IEEE double-precision floats. This loses some precision when
working with numbers as large as those generated by the new ID scheme,
so we instead handle them here as strings. This is relatively simple,
and doesn't appear to have caused any problems, but should definitely
be tested more thoroughly than the built-in tests. Several days of use
appear to support this working properly.
BREAKING CHANGE:
The major(!) change here is that IDs are now returned as strings by the
REST endpoints, rather than as integers. In practice, relatively few
changes were required to make the existing JS UI work with this change,
but it will likely hit API clients pretty hard: it's an entirely
different type to consume. (The one API client I tested, Tusky, handles
this with no problems, however.)
Twitter ran into this issue when introducing Snowflake IDs, and decided
to instead introduce an `id_str` field in JSON responses. I have opted
to *not* do that, and instead force all IDs to 64-bit integers
represented by strings in one go. (I believe Twitter exacerbated their
problem by rolling out the changes three times: once for statuses, once
for DMs, and once for user IDs, as well as by leaving an integer ID
value in JSON. As they said, "If you’re using the `id` field with JSON
in a Javascript-related language, there is a very high likelihood that
the integers will be silently munged by Javascript interpreters. In most
cases, this will result in behavior such as being unable to load or
delete a specific direct message, because the ID you're sending to the
API is different than the actual identifier associated with the
message." [1]) However, given that this is a significant change for API
users, alternatives or a transition time may be appropriate.
1: https://blog.twitter.com/developer/en_us/a/2011/direct-messages-going-snowflake-on-sep-30-2011.html
* Additional fixes for stringified IDs in JSON
These should be the last two. These were identified using eslint to try
to identify any plain casts to JavaScript numbers. (Some such casts are
legitimate, but these were not.)
Adding the following to .eslintrc.yml will identify casts to numbers:
~~~
no-restricted-syntax:
- warn
- selector: UnaryExpression[operator='+'] > :not(Literal)
message: Avoid the use of unary +
- selector: CallExpression[callee.name='Number']
message: Casting with Number() may coerce string IDs to numbers
~~~
The remaining three casts appear legitimate: two casts to array indices,
one in a server to turn an environment variable into a number.
* Back out RelationshipsController Change
This was made to make a test a bit less flakey, but has nothing to
do with this branch.
* Change internal streaming payloads to stringified IDs as well
Per
https://github.com/tootsuite/mastodon/pull/5019#issuecomment-330736452
we need these changes to send deleted status IDs as strings, not
integers.
2017-09-20 08:53:48 -04:00
this . props . dispatch ( fetchStatus ( this . props . params . statusId ) ) ;
2017-04-21 14:05:35 -04:00
}
2016-09-15 18:21:51 -04:00
2017-11-07 08:24:55 -05:00
componentDidMount ( ) {
attachFullscreenListener ( this . onFullScreenChange ) ;
2023-10-09 10:46:09 -04:00
this . _scrollStatusIntoView ( ) ;
2017-11-07 08:24:55 -05:00
}
2023-05-10 03:05:32 -04:00
UNSAFE _componentWillReceiveProps ( nextProps ) {
2016-09-15 18:21:51 -04:00
if ( nextProps . params . statusId !== this . props . params . statusId && nextProps . params . statusId ) {
Change IDs to strings rather than numbers in API JSON output (#5019)
* Fix JavaScript interface with long IDs
Somewhat predictably, the JS interface handled IDs as numbers, which in
JS are IEEE double-precision floats. This loses some precision when
working with numbers as large as those generated by the new ID scheme,
so we instead handle them here as strings. This is relatively simple,
and doesn't appear to have caused any problems, but should definitely
be tested more thoroughly than the built-in tests. Several days of use
appear to support this working properly.
BREAKING CHANGE:
The major(!) change here is that IDs are now returned as strings by the
REST endpoints, rather than as integers. In practice, relatively few
changes were required to make the existing JS UI work with this change,
but it will likely hit API clients pretty hard: it's an entirely
different type to consume. (The one API client I tested, Tusky, handles
this with no problems, however.)
Twitter ran into this issue when introducing Snowflake IDs, and decided
to instead introduce an `id_str` field in JSON responses. I have opted
to *not* do that, and instead force all IDs to 64-bit integers
represented by strings in one go. (I believe Twitter exacerbated their
problem by rolling out the changes three times: once for statuses, once
for DMs, and once for user IDs, as well as by leaving an integer ID
value in JSON. As they said, "If you’re using the `id` field with JSON
in a Javascript-related language, there is a very high likelihood that
the integers will be silently munged by Javascript interpreters. In most
cases, this will result in behavior such as being unable to load or
delete a specific direct message, because the ID you're sending to the
API is different than the actual identifier associated with the
message." [1]) However, given that this is a significant change for API
users, alternatives or a transition time may be appropriate.
1: https://blog.twitter.com/developer/en_us/a/2011/direct-messages-going-snowflake-on-sep-30-2011.html
* Additional fixes for stringified IDs in JSON
These should be the last two. These were identified using eslint to try
to identify any plain casts to JavaScript numbers. (Some such casts are
legitimate, but these were not.)
Adding the following to .eslintrc.yml will identify casts to numbers:
~~~
no-restricted-syntax:
- warn
- selector: UnaryExpression[operator='+'] > :not(Literal)
message: Avoid the use of unary +
- selector: CallExpression[callee.name='Number']
message: Casting with Number() may coerce string IDs to numbers
~~~
The remaining three casts appear legitimate: two casts to array indices,
one in a server to turn an environment variable into a number.
* Back out RelationshipsController Change
This was made to make a test a bit less flakey, but has nothing to
do with this branch.
* Change internal streaming payloads to stringified IDs as well
Per
https://github.com/tootsuite/mastodon/pull/5019#issuecomment-330736452
we need these changes to send deleted status IDs as strings, not
integers.
2017-09-20 08:53:48 -04:00
this . props . dispatch ( fetchStatus ( nextProps . params . statusId ) ) ;
2016-09-15 18:21:51 -04:00
}
2019-05-26 07:48:16 -04:00
2019-05-29 10:33:15 -04:00
if ( nextProps . status && nextProps . status . get ( 'id' ) !== this . state . loadedStatusId ) {
this . setState ( { showMedia : defaultMediaVisibility ( nextProps . status ) , loadedStatusId : nextProps . status . get ( 'id' ) } ) ;
2019-05-25 17:20:51 -04:00
}
}
handleToggleMediaVisibility = ( ) => {
this . setState ( { showMedia : ! this . state . showMedia } ) ;
2023-01-29 19:45:35 -05:00
} ;
2016-09-15 18:21:51 -04:00
2017-05-12 08:44:10 -04:00
handleFavouriteClick = ( status ) => {
2022-10-07 04:14:31 -04:00
const { dispatch } = this . props ;
const { signedIn } = this . context . identity ;
if ( signedIn ) {
if ( status . get ( 'favourited' ) ) {
dispatch ( unfavourite ( status ) ) ;
} else {
dispatch ( favourite ( status ) ) ;
}
2017-02-16 20:33:10 -05:00
} else {
2023-05-25 09:42:37 -04:00
dispatch ( openModal ( {
modalType : 'INTERACTION' ,
modalProps : {
type : 'favourite' ,
accountId : status . getIn ( [ 'account' , 'id' ] ) ,
2023-07-27 10:11:17 -04:00
url : status . get ( 'uri' ) ,
2023-05-25 09:42:37 -04:00
} ,
2022-10-07 04:14:31 -04:00
} ) ) ;
2017-02-16 20:33:10 -05:00
}
2023-01-29 19:45:35 -05:00
} ;
2016-09-17 11:47:26 -04:00
2017-08-24 19:41:18 -04:00
handlePin = ( status ) => {
if ( status . get ( 'pinned' ) ) {
this . props . dispatch ( unpin ( status ) ) ;
} else {
this . props . dispatch ( pin ( status ) ) ;
}
2023-01-29 19:45:35 -05:00
} ;
2017-08-24 19:41:18 -04:00
2017-05-12 08:44:10 -04:00
handleReplyClick = ( status ) => {
2022-10-07 04:14:31 -04:00
const { askReplyConfirmation , dispatch , intl } = this . props ;
const { signedIn } = this . context . identity ;
if ( signedIn ) {
if ( askReplyConfirmation ) {
2023-05-25 09:42:37 -04:00
dispatch ( openModal ( {
modalType : 'CONFIRM' ,
modalProps : {
message : intl . formatMessage ( messages . replyMessage ) ,
confirm : intl . formatMessage ( messages . replyConfirm ) ,
2023-10-19 13:44:55 -04:00
onConfirm : ( ) => dispatch ( replyCompose ( status , this . props . history ) ) ,
2023-05-25 09:42:37 -04:00
} ,
2022-10-07 04:14:31 -04:00
} ) ) ;
} else {
2023-10-19 13:44:55 -04:00
dispatch ( replyCompose ( status , this . props . history ) ) ;
2022-10-07 04:14:31 -04:00
}
2018-10-05 12:44:44 -04:00
} else {
2023-05-25 09:42:37 -04:00
dispatch ( openModal ( {
modalType : 'INTERACTION' ,
modalProps : {
type : 'reply' ,
accountId : status . getIn ( [ 'account' , 'id' ] ) ,
2023-07-27 10:11:17 -04:00
url : status . get ( 'uri' ) ,
2023-05-25 09:42:37 -04:00
} ,
2022-10-07 04:14:31 -04:00
} ) ) ;
2018-10-05 12:44:44 -04:00
}
2023-01-29 19:45:35 -05:00
} ;
2016-09-17 11:47:26 -04:00
2021-02-10 18:53:12 -05:00
handleModalReblog = ( status , privacy ) => {
this . props . dispatch ( reblog ( status , privacy ) ) ;
2023-01-29 19:45:35 -05:00
} ;
2017-04-10 22:28:52 -04:00
2017-05-12 08:44:10 -04:00
handleReblogClick = ( status , e ) => {
2022-10-07 04:14:31 -04:00
const { dispatch } = this . props ;
const { signedIn } = this . context . identity ;
if ( signedIn ) {
if ( status . get ( 'reblogged' ) ) {
dispatch ( unreblog ( status ) ) ;
2017-04-11 08:34:14 -04:00
} else {
2022-10-07 04:14:31 -04:00
if ( ( e && e . shiftKey ) || ! boostModal ) {
this . handleModalReblog ( status ) ;
} else {
dispatch ( initBoostModal ( { status , onReblog : this . handleModalReblog } ) ) ;
}
2017-04-11 08:34:14 -04:00
}
2022-10-07 04:14:31 -04:00
} else {
2023-05-25 09:42:37 -04:00
dispatch ( openModal ( {
modalType : 'INTERACTION' ,
modalProps : {
type : 'reblog' ,
accountId : status . getIn ( [ 'account' , 'id' ] ) ,
2023-07-27 10:11:17 -04:00
url : status . get ( 'uri' ) ,
2023-05-25 09:42:37 -04:00
} ,
2022-10-07 04:14:31 -04:00
} ) ) ;
2017-02-16 20:33:10 -05:00
}
2023-01-29 19:45:35 -05:00
} ;
2016-09-17 11:47:26 -04:00
2019-11-13 17:02:10 -05:00
handleBookmarkClick = ( status ) => {
if ( status . get ( 'bookmarked' ) ) {
this . props . dispatch ( unbookmark ( status ) ) ;
} else {
this . props . dispatch ( bookmark ( status ) ) ;
}
2023-01-29 19:45:35 -05:00
} ;
2019-11-13 17:02:10 -05:00
2018-08-18 21:17:01 -04:00
handleDeleteClick = ( status , history , withRedraft = false ) => {
2017-04-22 22:39:50 -04:00
const { dispatch , intl } = this . props ;
2017-10-29 11:10:15 -04:00
if ( ! deleteModal ) {
2018-08-18 21:17:01 -04:00
dispatch ( deleteStatus ( status . get ( 'id' ) , history , withRedraft ) ) ;
2017-05-29 11:56:13 -04:00
} else {
2023-05-25 09:42:37 -04:00
dispatch ( openModal ( {
modalType : 'CONFIRM' ,
modalProps : {
message : intl . formatMessage ( withRedraft ? messages . redraftMessage : messages . deleteMessage ) ,
confirm : intl . formatMessage ( withRedraft ? messages . redraftConfirm : messages . deleteConfirm ) ,
onConfirm : ( ) => dispatch ( deleteStatus ( status . get ( 'id' ) , history , withRedraft ) ) ,
} ,
2017-05-29 11:56:13 -04:00
} ) ) ;
}
2023-01-29 19:45:35 -05:00
} ;
2016-10-09 16:19:15 -04:00
2022-02-09 18:15:30 -05:00
handleEditClick = ( status , history ) => {
this . props . dispatch ( editStatus ( status . get ( 'id' ) , history ) ) ;
2023-01-29 19:45:35 -05:00
} ;
2022-02-09 18:15:30 -05:00
2018-04-09 11:09:11 -04:00
handleDirectClick = ( account , router ) => {
this . props . dispatch ( directCompose ( account , router ) ) ;
2023-01-29 19:45:35 -05:00
} ;
2018-04-09 11:09:11 -04:00
2017-05-12 08:44:10 -04:00
handleMentionClick = ( account , router ) => {
2017-01-30 15:40:55 -05:00
this . props . dispatch ( mentionCompose ( account , router ) ) ;
2023-01-29 19:45:35 -05:00
} ;
2016-10-24 11:11:02 -04:00
2023-05-11 06:41:55 -04:00
handleOpenMedia = ( media , index , lang ) => {
2023-05-25 09:42:37 -04:00
this . props . dispatch ( openModal ( {
modalType : 'MEDIA' ,
modalProps : { statusId : this . props . status . get ( 'id' ) , media , index , lang } ,
} ) ) ;
2023-01-29 19:45:35 -05:00
} ;
2016-10-24 12:07:40 -04:00
2023-05-11 06:41:55 -04:00
handleOpenVideo = ( media , lang , options ) => {
2023-05-25 09:42:37 -04:00
this . props . dispatch ( openModal ( {
modalType : 'VIDEO' ,
modalProps : { statusId : this . props . status . get ( 'id' ) , media , lang , options } ,
} ) ) ;
2023-01-29 19:45:35 -05:00
} ;
2017-04-13 09:04:18 -04:00
2019-11-29 11:02:36 -05:00
handleHotkeyOpenMedia = e => {
2020-11-26 21:24:11 -05:00
const { status } = this . props ;
2019-11-29 11:02:36 -05:00
e . preventDefault ( ) ;
if ( status . get ( 'media_attachments' ) . size > 0 ) {
2020-11-26 21:24:11 -05:00
if ( status . getIn ( [ 'media_attachments' , 0 , 'type' ] ) === 'video' ) {
2020-04-25 06:16:05 -04:00
this . handleOpenVideo ( status . getIn ( [ 'media_attachments' , 0 ] ) , { startTime : 0 } ) ;
2019-11-29 11:02:36 -05:00
} else {
this . handleOpenMedia ( status . get ( 'media_attachments' ) , 0 ) ;
}
}
2023-01-29 19:45:35 -05:00
} ;
2019-11-29 11:02:36 -05:00
2017-12-25 14:56:05 -05:00
handleMuteClick = ( account ) => {
this . props . dispatch ( initMuteModal ( account ) ) ;
2023-01-29 19:45:35 -05:00
} ;
2017-12-25 14:56:05 -05:00
handleConversationMuteClick = ( status ) => {
if ( status . get ( 'muted' ) ) {
this . props . dispatch ( unmuteStatus ( status . get ( 'id' ) ) ) ;
} else {
this . props . dispatch ( muteStatus ( status . get ( 'id' ) ) ) ;
}
2023-01-29 19:45:35 -05:00
} ;
2017-12-25 14:56:05 -05:00
2018-03-11 04:52:59 -04:00
handleToggleHidden = ( status ) => {
if ( status . get ( 'hidden' ) ) {
this . props . dispatch ( revealStatus ( status . get ( 'id' ) ) ) ;
} else {
this . props . dispatch ( hideStatus ( status . get ( 'id' ) ) ) ;
}
2023-01-29 19:45:35 -05:00
} ;
2018-03-11 04:52:59 -04:00
handleToggleAll = ( ) => {
const { status , ancestorsIds , descendantsIds } = this . props ;
const statusIds = [ status . get ( 'id' ) ] . concat ( ancestorsIds . toJS ( ) , descendantsIds . toJS ( ) ) ;
if ( status . get ( 'hidden' ) ) {
this . props . dispatch ( revealStatus ( statusIds ) ) ;
} else {
this . props . dispatch ( hideStatus ( statusIds ) ) ;
}
2023-01-29 19:45:35 -05:00
} ;
2018-03-11 04:52:59 -04:00
2022-09-23 17:00:12 -04:00
handleTranslate = status => {
const { dispatch } = this . props ;
if ( status . get ( 'translation' ) ) {
2023-05-31 18:10:21 -04:00
dispatch ( undoStatusTranslation ( status . get ( 'id' ) , status . get ( 'poll' ) ) ) ;
2022-09-23 17:00:12 -04:00
} else {
dispatch ( translateStatus ( status . get ( 'id' ) ) ) ;
}
2023-01-29 19:45:35 -05:00
} ;
2022-09-23 17:00:12 -04:00
2019-03-26 12:34:02 -04:00
handleBlockClick = ( status ) => {
2019-09-29 15:46:05 -04:00
const { dispatch } = this . props ;
2019-03-26 12:34:02 -04:00
const account = status . get ( 'account' ) ;
2019-09-29 15:46:05 -04:00
dispatch ( initBlockModal ( account ) ) ;
2023-01-29 19:45:35 -05:00
} ;
2017-12-25 14:56:05 -05:00
2017-05-12 08:44:10 -04:00
handleReport = ( status ) => {
2017-02-14 14:59:26 -05:00
this . props . dispatch ( initReport ( status . get ( 'account' ) , status ) ) ;
2023-01-29 19:45:35 -05:00
} ;
2017-02-14 14:59:26 -05:00
2017-08-30 21:38:35 -04:00
handleEmbed = ( status ) => {
2023-05-25 09:42:37 -04:00
this . props . dispatch ( openModal ( {
modalType : 'EMBED' ,
2023-07-13 09:53:03 -04:00
modalProps : { id : status . get ( 'id' ) } ,
2023-05-25 09:42:37 -04:00
} ) ) ;
2023-01-29 19:45:35 -05:00
} ;
2017-08-30 21:38:35 -04:00
2019-11-19 15:24:16 -05:00
handleUnmuteClick = account => {
this . props . dispatch ( unmuteAccount ( account . get ( 'id' ) ) ) ;
2023-01-29 19:45:35 -05:00
} ;
2019-11-19 15:24:16 -05:00
handleUnblockClick = account => {
this . props . dispatch ( unblockAccount ( account . get ( 'id' ) ) ) ;
2023-01-29 19:45:35 -05:00
} ;
2019-11-19 15:24:16 -05:00
handleBlockDomainClick = domain => {
2023-05-25 09:42:37 -04:00
this . props . dispatch ( openModal ( {
modalType : 'CONFIRM' ,
modalProps : {
message : < FormattedMessage id = 'confirmations.domain_block.message' defaultMessage = 'Are you really, really sure you want to block the entire {domain}? In most cases a few targeted blocks or mutes are sufficient and preferable. You will not see content from that domain in any public timelines or your notifications. Your followers from that domain will be removed.' values = { { domain : < strong > { domain } < / strong > } } / > ,
confirm : this . props . intl . formatMessage ( messages . blockDomainConfirm ) ,
onConfirm : ( ) => this . props . dispatch ( blockDomain ( domain ) ) ,
} ,
2019-11-19 15:24:16 -05:00
} ) ) ;
2023-01-29 19:45:35 -05:00
} ;
2019-11-19 15:24:16 -05:00
handleUnblockDomainClick = domain => {
this . props . dispatch ( unblockDomain ( domain ) ) ;
2023-01-29 19:45:35 -05:00
} ;
2019-11-19 15:24:16 -05:00
2017-10-05 19:07:59 -04:00
handleHotkeyMoveUp = ( ) => {
this . handleMoveUp ( this . props . status . get ( 'id' ) ) ;
2023-01-29 19:45:35 -05:00
} ;
2017-10-05 19:07:59 -04:00
handleHotkeyMoveDown = ( ) => {
this . handleMoveDown ( this . props . status . get ( 'id' ) ) ;
2023-01-29 19:45:35 -05:00
} ;
2017-10-05 19:07:59 -04:00
handleHotkeyReply = e => {
e . preventDefault ( ) ;
this . handleReplyClick ( this . props . status ) ;
2023-01-29 19:45:35 -05:00
} ;
2017-10-05 19:07:59 -04:00
handleHotkeyFavourite = ( ) => {
this . handleFavouriteClick ( this . props . status ) ;
2023-01-29 19:45:35 -05:00
} ;
2017-10-05 19:07:59 -04:00
handleHotkeyBoost = ( ) => {
this . handleReblogClick ( this . props . status ) ;
2023-01-29 19:45:35 -05:00
} ;
2017-10-05 19:07:59 -04:00
handleHotkeyMention = e => {
e . preventDefault ( ) ;
2018-07-02 20:17:18 -04:00
this . handleMentionClick ( this . props . status . get ( 'account' ) ) ;
2023-01-29 19:45:35 -05:00
} ;
2017-10-05 19:07:59 -04:00
handleHotkeyOpenProfile = ( ) => {
2023-10-19 13:44:55 -04:00
this . props . history . push ( ` /@ ${ this . props . status . getIn ( [ 'account' , 'acct' ] ) } ` ) ;
2023-01-29 19:45:35 -05:00
} ;
2017-10-05 19:07:59 -04:00
2018-04-17 21:33:59 -04:00
handleHotkeyToggleHidden = ( ) => {
this . handleToggleHidden ( this . props . status ) ;
2023-01-29 19:45:35 -05:00
} ;
2018-04-17 21:33:59 -04:00
2019-05-25 17:20:51 -04:00
handleHotkeyToggleSensitive = ( ) => {
this . handleToggleMediaVisibility ( ) ;
2023-01-29 19:45:35 -05:00
} ;
2019-05-25 17:20:51 -04:00
2017-10-05 19:07:59 -04:00
handleMoveUp = id => {
const { status , ancestorsIds , descendantsIds } = this . props ;
if ( id === status . get ( 'id' ) ) {
2019-05-03 00:20:36 -04:00
this . _selectChild ( ancestorsIds . size - 1 , true ) ;
2017-10-05 19:07:59 -04:00
} else {
let index = ancestorsIds . indexOf ( id ) ;
if ( index === - 1 ) {
index = descendantsIds . indexOf ( id ) ;
2019-05-03 00:20:36 -04:00
this . _selectChild ( ancestorsIds . size + index , true ) ;
2017-10-05 19:07:59 -04:00
} else {
2019-05-03 00:20:36 -04:00
this . _selectChild ( index - 1 , true ) ;
2017-10-05 19:07:59 -04:00
}
}
2023-01-29 19:45:35 -05:00
} ;
2017-10-05 19:07:59 -04:00
handleMoveDown = id => {
const { status , ancestorsIds , descendantsIds } = this . props ;
if ( id === status . get ( 'id' ) ) {
2019-05-03 00:20:36 -04:00
this . _selectChild ( ancestorsIds . size + 1 , false ) ;
2017-10-05 19:07:59 -04:00
} else {
let index = ancestorsIds . indexOf ( id ) ;
if ( index === - 1 ) {
index = descendantsIds . indexOf ( id ) ;
2019-05-03 00:20:36 -04:00
this . _selectChild ( ancestorsIds . size + index + 2 , false ) ;
2017-10-05 19:07:59 -04:00
} else {
2019-05-03 00:20:36 -04:00
this . _selectChild ( index + 1 , false ) ;
2017-10-05 19:07:59 -04:00
}
}
2023-01-29 19:45:35 -05:00
} ;
2017-10-05 19:07:59 -04:00
2019-05-03 00:20:36 -04:00
_selectChild ( index , align _top ) {
const container = this . node ;
const element = container . querySelectorAll ( '.focusable' ) [ index ] ;
2017-10-05 19:07:59 -04:00
if ( element ) {
2019-05-03 00:20:36 -04:00
if ( align _top && container . scrollTop > element . offsetTop ) {
element . scrollIntoView ( true ) ;
} else if ( ! align _top && container . scrollTop + container . clientHeight < element . offsetTop + element . offsetHeight ) {
element . scrollIntoView ( false ) ;
}
2017-10-05 19:07:59 -04:00
element . focus ( ) ;
}
}
2023-04-24 02:07:03 -04:00
renderChildren ( list , ancestors ) {
const { params : { statusId } } = this . props ;
return list . map ( ( id , i ) => (
2017-10-05 19:07:59 -04:00
< StatusContainer
key = { id }
id = { id }
onMoveUp = { this . handleMoveUp }
onMoveDown = { this . handleMoveDown }
2018-06-29 09:34:36 -04:00
contextType = 'thread'
2023-08-23 09:43:41 -04:00
previousId = { i > 0 ? list . get ( i - 1 ) : undefined }
2023-04-24 02:07:03 -04:00
nextId = { list . get ( i + 1 ) || ( ancestors && statusId ) }
rootId = { statusId }
2017-10-05 19:07:59 -04:00
/ >
) ) ;
}
2024-01-04 09:17:38 -05:00
setContainerRef = c => {
2017-10-05 19:07:59 -04:00
this . node = c ;
2023-01-29 19:45:35 -05:00
} ;
2017-10-05 19:07:59 -04:00
2024-01-04 09:17:38 -05:00
setStatusRef = c => {
this . statusNode = c ;
} ;
2023-10-09 10:46:09 -04:00
_scrollStatusIntoView ( ) {
const { status , multiColumn } = this . props ;
2017-10-11 13:21:44 -04:00
2023-10-09 10:46:09 -04:00
if ( status ) {
2024-01-04 09:17:38 -05:00
requestIdleCallback ( ( ) => {
this . statusNode ? . scrollIntoView ( true ) ;
2023-07-21 07:14:30 -04:00
// In the single-column interface, `scrollIntoView` will put the post behind the header,
// so compensate for that.
if ( ! multiColumn ) {
const offset = document . querySelector ( '.column-header__wrapper' ) ? . getBoundingClientRect ( ) ? . bottom ;
if ( offset ) {
const scrollingElement = document . scrollingElement || document . body ;
scrollingElement . scrollBy ( 0 , - offset ) ;
}
}
2018-08-17 08:07:38 -04:00
} ) ;
2017-10-05 19:07:59 -04:00
}
2017-04-21 14:05:35 -04:00
}
2016-09-15 18:21:51 -04:00
2023-10-09 10:46:09 -04:00
componentDidUpdate ( prevProps ) {
const { status , ancestorsIds } = this . props ;
if ( status && ( ancestorsIds . size > prevProps . ancestorsIds . size || prevProps . status ? . get ( 'id' ) !== status . get ( 'id' ) ) ) {
this . _scrollStatusIntoView ( ) ;
}
}
2017-11-07 08:24:55 -05:00
componentWillUnmount ( ) {
detachFullscreenListener ( this . onFullScreenChange ) ;
}
onFullScreenChange = ( ) => {
this . setState ( { fullscreen : isFullscreen ( ) } ) ;
2023-01-29 19:45:35 -05:00
} ;
2017-11-07 08:24:55 -05:00
2023-10-09 06:21:02 -04:00
shouldUpdateScroll = ( prevRouterProps , { location } ) => {
// Do not change scroll when opening a modal
2023-10-10 05:35:32 -04:00
if ( location . state ? . mastodonModalKey !== prevRouterProps ? . location ? . state ? . mastodonModalKey ) {
2023-10-09 06:21:02 -04:00
return false ;
}
// Scroll to focused post if it is loaded
2024-01-04 09:17:38 -05:00
if ( this . statusNode ) {
return [ 0 , this . statusNode . offsetTop ] ;
2023-10-09 06:21:02 -04:00
}
// Do not scroll otherwise, `componentDidUpdate` will take care of that
return false ;
} ;
2016-09-15 18:21:51 -04:00
render ( ) {
2016-10-24 11:11:02 -04:00
let ancestors , descendants ;
2022-10-20 08:35:29 -04:00
const { isLoading , status , ancestorsIds , descendantsIds , intl , domain , multiColumn , pictureInPicture } = this . props ;
2017-11-07 08:24:55 -05:00
const { fullscreen } = this . state ;
2016-09-15 18:21:51 -04:00
2022-10-20 08:35:29 -04:00
if ( isLoading ) {
return (
< Column >
< LoadingIndicator / >
< / Column >
) ;
}
2016-09-15 18:21:51 -04:00
if ( status === null ) {
2016-10-07 10:00:11 -04:00
return (
2023-04-12 06:44:58 -04:00
< BundleColumnError multiColumn = { multiColumn } errorType = 'routing' / >
2016-10-07 10:00:11 -04:00
) ;
2016-09-15 18:21:51 -04:00
}
2016-10-30 10:06:43 -04:00
if ( ancestorsIds && ancestorsIds . size > 0 ) {
2023-04-24 02:07:03 -04:00
ancestors = < > { this . renderChildren ( ancestorsIds , true ) } < / > ;
2016-10-24 11:11:02 -04:00
}
2016-10-30 10:06:43 -04:00
if ( descendantsIds && descendantsIds . size > 0 ) {
2023-04-12 06:44:58 -04:00
descendants = < > { this . renderChildren ( descendantsIds ) } < / > ;
2016-10-24 11:11:02 -04:00
}
2022-10-20 08:35:29 -04:00
const isLocal = status . getIn ( [ 'account' , 'acct' ] , '' ) . indexOf ( '@' ) === - 1 ;
const isIndexable = ! status . getIn ( [ 'account' , 'noindex' ] ) ;
2017-10-05 19:07:59 -04:00
const handlers = {
moveUp : this . handleHotkeyMoveUp ,
moveDown : this . handleHotkeyMoveDown ,
reply : this . handleHotkeyReply ,
favourite : this . handleHotkeyFavourite ,
boost : this . handleHotkeyBoost ,
mention : this . handleHotkeyMention ,
openProfile : this . handleHotkeyOpenProfile ,
2018-04-17 21:33:59 -04:00
toggleHidden : this . handleHotkeyToggleHidden ,
2019-05-25 17:20:51 -04:00
toggleSensitive : this . handleHotkeyToggleSensitive ,
2019-11-29 11:02:36 -05:00
openMedia : this . handleHotkeyOpenMedia ,
2017-10-05 19:07:59 -04:00
} ;
2016-09-15 18:21:51 -04:00
return (
2019-08-01 13:17:17 -04:00
< Column bindToDocument = { ! multiColumn } label = { intl . formatMessage ( messages . detailedStatus ) } >
2018-03-11 04:52:59 -04:00
< ColumnHeader
showBackButton
2019-08-01 06:26:58 -04:00
multiColumn = { multiColumn }
2018-03-11 04:52:59 -04:00
extraButton = { (
2023-10-24 13:45:08 -04:00
< button type = 'button' className = 'column-header__button' title = { intl . formatMessage ( status . get ( 'hidden' ) ? messages . revealAll : messages . hideAll ) } aria - label = { intl . formatMessage ( status . get ( 'hidden' ) ? messages . revealAll : messages . hideAll ) } onClick = { this . handleToggleAll } > < Icon id = { status . get ( 'hidden' ) ? 'eye-slash' : 'eye' } icon = { status . get ( 'hidden' ) ? VisibilityOffIcon : VisibilityIcon } / > < / button >
2018-03-11 04:52:59 -04:00
) }
/ >
2016-09-18 07:03:37 -04:00
2023-10-09 06:21:02 -04:00
< ScrollContainer scrollKey = 'thread' shouldUpdateScroll = { this . shouldUpdateScroll } >
2024-01-04 09:17:38 -05:00
< div className = { classNames ( 'scrollable' , { fullscreen } ) } ref = { this . setContainerRef } >
2016-10-24 11:11:02 -04:00
{ ancestors }
2016-09-18 07:03:37 -04:00
2017-10-05 19:07:59 -04:00
< HotKeys handlers = { handlers } >
2024-01-04 09:17:38 -05:00
< div className = { classNames ( 'focusable' , 'detailed-status__wrapper' , ` detailed-status__wrapper- ${ status . get ( 'visibility' ) } ` ) } tabIndex = { 0 } aria - label = { textForScreenReader ( intl , status , false ) } ref = { this . setStatusRef } >
2017-10-05 19:07:59 -04:00
< DetailedStatus
2020-01-06 12:22:17 -05:00
key = { ` details- ${ status . get ( 'id' ) } ` }
2017-10-05 19:07:59 -04:00
status = { status }
onOpenVideo = { this . handleOpenVideo }
onOpenMedia = { this . handleOpenMedia }
2018-03-11 04:52:59 -04:00
onToggleHidden = { this . handleToggleHidden }
2022-09-23 17:00:12 -04:00
onTranslate = { this . handleTranslate }
2019-01-17 08:06:08 -05:00
domain = { domain }
2019-05-25 17:20:51 -04:00
showMedia = { this . state . showMedia }
onToggleMediaVisibility = { this . handleToggleMediaVisibility }
2020-12-07 13:36:36 -05:00
pictureInPicture = { pictureInPicture }
2017-10-05 19:07:59 -04:00
/ >
< ActionBar
2020-01-06 12:22:17 -05:00
key = { ` action-bar- ${ status . get ( 'id' ) } ` }
2017-10-05 19:07:59 -04:00
status = { status }
onReply = { this . handleReplyClick }
onFavourite = { this . handleFavouriteClick }
onReblog = { this . handleReblogClick }
2019-11-13 17:02:10 -05:00
onBookmark = { this . handleBookmarkClick }
2017-10-05 19:07:59 -04:00
onDelete = { this . handleDeleteClick }
2022-02-09 18:15:30 -05:00
onEdit = { this . handleEditClick }
2018-04-09 11:09:11 -04:00
onDirect = { this . handleDirectClick }
2017-10-05 19:07:59 -04:00
onMention = { this . handleMentionClick }
2017-12-25 14:56:05 -05:00
onMute = { this . handleMuteClick }
2019-11-19 15:24:16 -05:00
onUnmute = { this . handleUnmuteClick }
2017-12-25 14:56:05 -05:00
onMuteConversation = { this . handleConversationMuteClick }
onBlock = { this . handleBlockClick }
2019-11-19 15:24:16 -05:00
onUnblock = { this . handleUnblockClick }
onBlockDomain = { this . handleBlockDomainClick }
onUnblockDomain = { this . handleUnblockDomainClick }
2017-10-05 19:07:59 -04:00
onReport = { this . handleReport }
onPin = { this . handlePin }
onEmbed = { this . handleEmbed }
/ >
< / div >
< / HotKeys >
2016-10-19 12:20:19 -04:00
2016-10-24 11:11:02 -04:00
{ descendants }
2016-10-19 12:20:19 -04:00
< / div >
< / ScrollContainer >
2022-09-28 22:39:33 -04:00
< Helmet >
2023-04-14 11:29:09 -04:00
< title > { titleFromStatus ( intl , status ) } < / title >
2022-10-20 08:35:29 -04:00
< meta name = 'robots' content = { ( isLocal && isIndexable ) ? 'all' : 'noindex' } / >
2023-07-05 05:25:27 -04:00
< link rel = 'canonical' href = { status . get ( 'url' ) } / >
2022-09-28 22:39:33 -04:00
< / Helmet >
2016-10-07 10:00:11 -04:00
< / Column >
2016-09-15 18:21:51 -04:00
) ;
}
2017-04-21 14:05:35 -04:00
}
2023-03-23 22:17:53 -04:00
2023-10-19 13:44:55 -04:00
export default withRouter ( injectIntl ( connect ( makeMapStateToProps ) ( Status ) ) ) ;