cb0ad15138
Replaces all icons with the [Phosphor icon set](https://phosphoricons.com/). To accomodate these icons this also touches general style of buttons, headings, and other containers of icons. I want to give a massive shout out to [Niléane](https://nileane.fr/@nileane) and her project [Tangerine UI](https://github.com/nileane/TangerineUI-for-Mastodon). Most of the icons/adjustments I’ve made are based on her choices and work. Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/77 Contains: commit4cd78295ddAuthor: Zoë Bijl <code@moiety.me> Date: Tue Oct 14 13:57:50 2025 +0200 [bugfix] increase contrast for spoiler link commit4594e776e0Author: Zoë Bijl <code@moiety.me> Date: Tue Oct 14 13:48:05 2025 +0200 [bugfix] increase contrast for “secondary” in light mode Increase the contrast for icons, usernames, and some other places commit7db3518be7Author: Zoë Bijl <code@moiety.me> Date: Tue Oct 14 13:39:36 2025 +0200 [bugfix] increase size of overlayed buttons …such as the hide sensitive content button commit3fd37bbfa5Author: Zoë Bijl <code@moiety.me> Date: Tue Oct 14 13:29:22 2025 +0200 [bugfix] resize three dot menu next to user commit82a4b2b8d9Author: Zoë Bijl <code@moiety.me> Date: Tue Oct 14 13:23:29 2025 +0200 [bugfix] use correct icon name commit470cb995f9Author: Zoë Bijl <code@moiety.me> Date: Tue Oct 14 12:55:27 2025 +0200 [bugfix] add back translation for pin/unpin button https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/77#issuecomment-7718876 commit255b64c8f7Author: Zoë Bijl <code@moiety.me> Date: Tue Oct 14 12:22:34 2025 +0200 [bugfix] restore title functionality for icons the `title`-attribute doesn’t work on `<SVG>`-elements. the way to do it is with a nested `<title>`-element. this adds this functionality commit9c25c362fbAuthor: Zoë Bijl <code@moiety.me> Date: Tue Oct 14 11:54:44 2025 +0200 [bugfix] remove import of Icon This gave me an error yesterday i think, but seems fine now, so 🤷🏻♀️. From review: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/77#issuecomment-7719077 commit36065d03fbAuthor: Zoë Bijl <code@moiety.me> Date: Tue Oct 14 10:43:02 2025 +0200 [docs] update changelog commit80cb9ef0c5Author: Zoë Bijl <code@moiety.me> Date: Tue Oct 14 10:09:10 2025 +0200 [bugfix] first pass at deduping and sorting commit59beb08921Author: Zoë Bijl <code@moiety.me> Date: Tue Oct 14 01:59:50 2025 +0200 fix lint issues commit3ffcdffdf1Author: Zoë Bijl <code@moiety.me> Date: Tue Oct 14 01:53:24 2025 +0200 liint commitcda2a62ee5Author: Zoë Bijl <code@moiety.me> Date: Tue Oct 14 01:46:50 2025 +0200 lint commit373b756e8aAuthor: Zoë Bijl <code@moiety.me> Date: Tue Oct 14 00:55:35 2025 +0200 rename calls commitd53ca0d990Author: Zoë Bijl <code@moiety.me> Date: Tue Oct 14 00:52:25 2025 +0200 rename icon components commit07a1e149e1Author: Zoë Bijl <code@moiety.me> Date: Tue Oct 14 00:45:21 2025 +0200 [feature] change _all_ remaining icons commit53fdc6b82fAuthor: Zoë Bijl <code@moiety.me> Date: Mon Oct 13 20:17:04 2025 +0200 [feature] change upload form icons commitd143b433b2Author: Zoë Bijl <code@moiety.me> Date: Mon Oct 13 13:56:27 2025 +0200 [bugfix] allow icon with badge to expand horizontally This allows it to contain more numbers / text. Getting double digit notifications for example. Or the follow request cap '40+' text. commitb737f07676Author: Zoë Bijl <code@moiety.me> Date: Mon Oct 13 13:46:13 2025 +0200 [bugfix] import correct component for “follow request” menu item commit03205b05a9Author: Zoë Bijl <code@moiety.me> Date: Mon Oct 13 13:07:40 2025 +0200 [feature] update follow request icons commit199db8b9afAuthor: Zoë Bijl <code@moiety.me> Date: Mon Oct 13 01:40:23 2025 +0200 [feature] change video player controls commit9fcbf23274Author: Zoë Bijl <code@moiety.me> Date: Sun Oct 12 14:07:37 2025 +0200 [feature] change unlisted status icon to an open padlock Custom made icon based on Phosphor. I flipped the “lock” bit so it’s easier to distinguish. commita359bf4ab1Author: Zoë Bijl <code@moiety.me> Date: Fri Oct 10 17:30:10 2025 +0200 [build] add regex for stylelint/custom-property-pattern Example: https://regex101.com/r/eITX54/1 commit972624b360Author: Zoë Bijl <code@moiety.me> Date: Fri Oct 10 15:52:28 2025 +0200 [build] edit custom-property-pattern commitcaf3c1e41aAuthor: Zoë Bijl <code@moiety.me> Date: Fri Oct 10 15:46:05 2025 +0200 [bugfix] fix media modal icons commit3d2df89ab5Author: Zoë Bijl <code@moiety.me> Date: Fri Oct 10 15:35:59 2025 +0200 [bugfix] correct notification filter bar colours commit36308a2234Author: Zoë Bijl <code@moiety.me> Date: Fri Oct 10 15:30:48 2025 +0200 [bugfix] fix account search result styling commiteea1c0315bAuthor: Zoë Bijl <code@moiety.me> Date: Fri Oct 10 15:30:17 2025 +0200 [bugfix] fix drawer colours commitc2140a4be1Author: Zoë Bijl <code@moiety.me> Date: Fri Oct 10 15:29:37 2025 +0200 [bugfix] fix search styling commit22c7fc2491Author: Zoë Bijl <code@moiety.me> Date: Fri Oct 10 15:28:48 2025 +0200 [feature] change icons to Phosphor commitf1eeb89908Author: Zoë Bijl <code@moiety.me> Date: Fri Oct 10 14:23:29 2025 +0200 [bugfix] properly set colors for lightmode commit7138e11984Author: Zoë Bijl <code@moiety.me> Date: Fri Oct 10 14:22:59 2025 +0200 [feature] use css variables for select component - Search field - Notifications filter bar/account post bar - Status prepend part ('x' boosted) - body background color commitb91f194012Author: Zoë Bijl <code@moiety.me> Date: Fri Oct 10 13:58:45 2025 +0200 [bugfix] set font-weight on account portion of the display name commit49ebf988a4Author: Zoë Bijl <code@moiety.me> Date: Fri Oct 10 12:16:41 2025 +0200 [chore] correct path to login.css commit6433626943Author: Zoë Bijl <code@moiety.me> Date: Fri Oct 10 12:10:54 2025 +0200 [chore] fix lint issues commit9034a3d103Author: Zoë Bijl <code@moiety.me> Date: Fri Oct 10 12:10:38 2025 +0200 [chore] update stylelint rules commit5d5325d067Author: Zoë Bijl <code@moiety.me> Date: Fri Oct 10 12:02:52 2025 +0200 [bugfix] style `.gts-icon-with-badge` Fixes styling for the notification badge commitfbd22639d9Author: Zoë Bijl <code@moiety.me> Date: Fri Oct 10 09:30:14 2025 +0200 icon badge style commit7f1c3fd388Author: Zoë Bijl <code@moiety.me> Date: Fri Oct 10 09:03:07 2025 +0200 [chore] fix lint issues commit5e063da784Author: Zoë Bijl <code@moiety.me> Date: Fri Oct 10 01:01:35 2025 +0200 [feature] change icon for “new list” button commitc22c8ea097Author: Zoë Bijl <code@moiety.me> Date: Thu Oct 9 23:50:28 2025 +0200 [chore] add debug style for `.fa` I want to remove all FontAwesome from the project. This will help find any that are left over. commitf236962403Author: Zoë Bijl <code@moiety.me> Date: Thu Oct 9 23:49:39 2025 +0200 [feature] change “local only” status icon commit94a1ec45c2Author: Zoë Bijl <code@moiety.me> Date: Thu Oct 9 23:31:42 2025 +0200 [bugfix] properly align account buttons commit7adcf93c80Author: Zoë Bijl <code@moiety.me> Date: Thu Oct 9 23:31:25 2025 +0200 [bugfix] set border radius on smaller screens commit8ad4c08069Author: Zoë Bijl <code@moiety.me> Date: Thu Oct 9 23:03:15 2025 +0200 [feature] remove icons from notification purge bar commit457c3c2910Author: Zoë Bijl <code@moiety.me> Date: Thu Oct 9 19:49:49 2025 +0200 [feature] change list edit buttons commit046be63ed6Author: Zoë Bijl <code@moiety.me> Date: Thu Oct 9 18:15:14 2025 +0200 [feature] update dismissible banner icon commit506e59034bAuthor: Zoë Bijl <code@moiety.me> Date: Thu Oct 9 15:08:15 2025 +0200 [feature] change header pin state/move icons commitd97df4b87fAuthor: Zoë Bijl <code@moiety.me> Date: Thu Oct 9 11:42:55 2025 +0200 [chore] fix lint:js errors commitb418204ae3Author: Zoë Bijl <code@moiety.me> Date: Thu Oct 9 09:50:37 2025 +0200 [chore] fix lint:js errors …related to the icons commit415b05d20aAuthor: Zoë Bijl <code@moiety.me> Date: Wed Oct 8 13:44:51 2025 +0200 [feature] replace column move icons commit14f119be65Author: Zoë Bijl <code@moiety.me> Date: Wed Oct 8 13:38:18 2025 +0200 [bugfix] hide overflow text commit6fb2dd73beAuthor: Zoë Bijl <code@moiety.me> Date: Wed Oct 8 12:05:25 2025 +0200 [feature] improve status-prepend display name hover state commitf8f0b403afAuthor: Zoë Bijl <code@moiety.me> Date: Wed Oct 8 11:55:57 2025 +0200 [bugfix] uncomment slim back button styles commit8b254ae288Author: Zoë Bijl <code@moiety.me> Date: Wed Oct 8 11:44:54 2025 +0200 [feature] refactor status styling This does a bunch of stuff: - split out status components into their own file - unify spacing within a status - outline all icons - neatly fade the overflow part of a username - add underlines to username links when appropriate - correctly size all icons in a status - restyle spoiler link (content warning button) commitebfbed0553Author: Zoë Bijl <code@moiety.me> Date: Wed Oct 8 11:40:18 2025 +0200 [feature] change content warning state icon commitf70946ef48Author: Zoë Bijl <code@moiety.me> Date: Wed Oct 8 11:26:22 2025 +0200 [bugfix] remove unnecessary `<span>` commit312b157581Author: Zoë Bijl <code@moiety.me> Date: Wed Oct 8 11:15:07 2025 +0200 [bugfix] correctly align status prepend commit2cd3a82fc7Author: Zoë Bijl <code@moiety.me> Date: Wed Oct 8 11:04:39 2025 +0200 [bugfix] set correct icon state in detailed status view This change was already made for the normal status view. It sets the icon to be filled when a status is boosted or favourited. Also forgoing the need for the Glitch checkmark. commite1c1325905Author: Zoë Bijl <code@moiety.me> Date: Wed Oct 8 11:02:58 2025 +0200 [feature] replace load-gap icon commitd483cab118Author: Zoë Bijl <code@moiety.me> Date: Wed Oct 8 11:00:05 2025 +0200 [feature] align `drawer` and `compose-panel` components - Neatly aligns both the `.drawer` and `.compose-panel` components - Fixes `.search__input` padding when inside the `.compose-panel` commit3c85b02b51Author: Zoë Bijl <code@moiety.me> Date: Wed Oct 8 10:52:37 2025 +0200 [feature] add “sizes” variables file commit7a4b9c6634Author: Zoë Bijl <code@moiety.me> Date: Tue Oct 7 17:26:30 2025 +0200 [feature] space out status action bar items commitebfd05be3dAuthor: Zoë Bijl <code@moiety.me> Date: Tue Oct 7 17:25:49 2025 +0200 [bugfix] remove “sticky” background on focus commita977011b34Author: Zoë Bijl <code@moiety.me> Date: Tue Oct 7 17:24:52 2025 +0200 [feature] refactor status prepend box commit52fbda27edAuthor: Zoë Bijl <code@moiety.me> Date: Tue Oct 7 17:20:44 2025 +0200 [feature] add GTS specific CSS provides a space to place rewritten CSS; should help keep track of what has been done. commit7209169ba9Author: Zoë Bijl <code@moiety.me> Date: Mon Oct 6 13:02:02 2025 +0200 [feature] add animations to status bar icons When activated the status bar (under a toot) icons now do a cute lil animation, courtesy of Tangerine UI. commitc0ea21299fAuthor: Zoë Bijl <code@moiety.me> Date: Sun Oct 5 01:36:12 2025 +0200 [feature] refactor search box / add drawer outlines - add outlines to some UI elements like the timeline and drawers - search “clear” button is now an actual `<button>` commit82cc610ab7Author: Zoë Bijl <code@moiety.me> Date: Sat Oct 4 20:34:17 2025 +0200 [feature] set icons for lists commit004404dc83Author: Zoë Bijl <code@moiety.me> Date: Sat Oct 4 20:33:39 2025 +0200 [feature] refactor local settings navigation item commit9dbc200fd6Author: Zoë Bijl <code@moiety.me> Date: Sat Oct 4 20:32:27 2025 +0200 [feature] refactor column/drawer header commitbeb7a68b5eAuthor: Zoë Bijl <code@moiety.me> Date: Sat Oct 4 20:30:29 2025 +0200 [fix] set correct icon size for action-bar commit6fb994abe6Author: Zoë Bijl <code@moiety.me> Date: Sat Oct 4 20:29:35 2025 +0200 [feature] refactor notifications filter bar commitefaeb5d969Author: Zoë Bijl <code@moiety.me> Date: Sat Oct 4 01:25:42 2025 +0200 [refactor] compose form button bar CSS Complete rewrite of the CSS for the compose form button bar. This makes the buttons and icons sit nicely in the available space. commit18fd2ef39aAuthor: Zoë Bijl <code@moiety.me> Date: Sat Oct 4 01:14:03 2025 +0200 [feat] change unlisted icon from lock to moon Makes easier to distinguish. commit5e16246d56Author: Zoë Bijl <code@moiety.me> Date: Sat Oct 4 01:00:54 2025 +0200 [fix] use `<button>` for emoji button No idea why this was a `<div>`; this works fine in my testing. commit250b415a9dAuthor: Zoë Bijl <code@moiety.me> Date: Sat Oct 4 00:58:16 2025 +0200 [fix] remove inline styling for icon button commitea3106c635Author: Zoë Bijl <code@moiety.me> Date: Fri Oct 3 23:11:38 2025 +0200 [feature] set toot footer icons based on state When you favourite, boost, or bookmark a toot the icons turns into a filled version. commit5a6fd18ec2Author: Zoë Bijl <code@moiety.me> Date: Wed Oct 1 23:48:22 2025 +0200 [feature] add SVG icons commitb62c1f4fc6Author: Zoë Bijl <code@moiety.me> Date: Wed Oct 1 00:56:51 2025 +0200 [feature] add SVG icons # Conflicts: # .editorconfig # Conflicts: # app/javascript/flavours/glitch/components/account.jsx # app/javascript/flavours/glitch/components/column_back_button.jsx # app/javascript/flavours/glitch/components/column_back_button_slim.jsx # app/javascript/flavours/glitch/components/column_header.jsx # app/javascript/flavours/glitch/components/dropdown_menu.jsx # app/javascript/flavours/glitch/components/media_gallery.jsx # app/javascript/flavours/glitch/components/status.jsx # app/javascript/flavours/glitch/components/status_action_bar.jsx # app/javascript/flavours/glitch/components/status_icons.jsx # app/javascript/flavours/glitch/components/status_prepend.jsx # app/javascript/flavours/glitch/components/status_visibility_icon.jsx # app/javascript/flavours/glitch/features/account/components/header.jsx # app/javascript/flavours/glitch/features/audio/index.jsx # app/javascript/flavours/glitch/features/compose/components/dropdown.jsx # app/javascript/flavours/glitch/features/compose/components/dropdown_menu.jsx # app/javascript/flavours/glitch/features/compose/components/emoji_picker_dropdown.jsx # app/javascript/flavours/glitch/features/compose/components/header.jsx # app/javascript/flavours/glitch/features/compose/components/options.jsx # app/javascript/flavours/glitch/features/compose/components/poll_form.jsx # app/javascript/flavours/glitch/features/compose/components/privacy_dropdown.jsx # app/javascript/flavours/glitch/features/compose/components/publisher.jsx # app/javascript/flavours/glitch/features/compose/components/reply_indicator.jsx # app/javascript/flavours/glitch/features/compose/components/search.jsx # app/javascript/flavours/glitch/features/compose/components/textarea_icons.jsx # app/javascript/flavours/glitch/features/favourites/index.jsx # app/javascript/flavours/glitch/features/getting_started/index.jsx # app/javascript/flavours/glitch/features/interaction_modal/index.jsx # app/javascript/flavours/glitch/features/local_settings/navigation/item/index.jsx # app/javascript/flavours/glitch/features/notifications/components/admin_report.jsx # app/javascript/flavours/glitch/features/notifications/components/admin_signup.jsx # app/javascript/flavours/glitch/features/notifications/components/clear_column_button.jsx # app/javascript/flavours/glitch/features/notifications/components/filter_bar.jsx # app/javascript/flavours/glitch/features/notifications/components/follow.jsx # app/javascript/flavours/glitch/features/notifications/components/follow_request.jsx # app/javascript/flavours/glitch/features/notifications/index.jsx # app/javascript/flavours/glitch/features/picture_in_picture/components/footer.jsx # app/javascript/flavours/glitch/features/reblogs/index.jsx # app/javascript/flavours/glitch/features/status/components/action_bar.jsx # app/javascript/flavours/glitch/features/status/components/detailed_status.jsx # app/javascript/flavours/glitch/features/status/index.jsx # app/javascript/flavours/glitch/features/ui/components/column_header.jsx # app/javascript/flavours/glitch/features/ui/components/column_link.jsx # app/javascript/flavours/glitch/features/ui/components/doodle_modal.jsx # app/javascript/flavours/glitch/features/ui/components/embed_modal.jsx # app/javascript/flavours/glitch/features/ui/components/filter_modal.jsx # app/javascript/flavours/glitch/features/ui/components/focal_point_modal.jsx # app/javascript/flavours/glitch/features/ui/components/image_modal.jsx # app/javascript/flavours/glitch/features/ui/components/media_modal.jsx # app/javascript/flavours/glitch/features/ui/components/notifications_counter_icon.js # app/javascript/flavours/glitch/features/ui/components/report_modal.jsx
792 lines
25 KiB
React
792 lines
25 KiB
React
import PropTypes from "prop-types";
|
|
|
|
import { defineMessages, injectIntl } from "react-intl";
|
|
|
|
import classNames from "classnames";
|
|
import { Helmet } from "react-helmet";
|
|
|
|
import Immutable from "immutable";
|
|
import ImmutablePropTypes from "react-immutable-proptypes";
|
|
import ImmutablePureComponent from "react-immutable-pure-component";
|
|
import { connect } from "react-redux";
|
|
import { createSelector } from "reselect";
|
|
|
|
import { HotKeys } from "react-hotkeys";
|
|
|
|
import { initBlockModal } from "flavours/glitch/actions/blocks";
|
|
import { initBoostModal } from "flavours/glitch/actions/boosts";
|
|
import {
|
|
replyCompose,
|
|
mentionCompose,
|
|
directCompose,
|
|
} from "flavours/glitch/actions/compose";
|
|
import {
|
|
favourite,
|
|
unfavourite,
|
|
bookmark,
|
|
unbookmark,
|
|
reblog,
|
|
unreblog,
|
|
pin,
|
|
unpin,
|
|
} from "flavours/glitch/actions/interactions";
|
|
import { changeLocalSetting } from "flavours/glitch/actions/local_settings";
|
|
import { openModal } from "flavours/glitch/actions/modal";
|
|
import { initMuteModal } from "flavours/glitch/actions/mutes";
|
|
import { initReport } from "flavours/glitch/actions/reports";
|
|
import {
|
|
fetchStatus,
|
|
muteStatus,
|
|
unmuteStatus,
|
|
deleteStatus,
|
|
editStatus,
|
|
hideStatus,
|
|
revealStatus,
|
|
translateStatus,
|
|
undoStatusTranslation,
|
|
} from "flavours/glitch/actions/statuses";
|
|
import { Icon } from "flavours/glitch/components/icon";
|
|
import { LoadingIndicator } from "flavours/glitch/components/loading_indicator";
|
|
import { textForScreenReader, defaultMediaVisibility } from "flavours/glitch/components/status";
|
|
import ScrollContainer from "flavours/glitch/containers/scroll_container";
|
|
import StatusContainer from "flavours/glitch/containers/status_container";
|
|
import BundleColumnError from "flavours/glitch/features/ui/components/bundle_column_error";
|
|
import Column from "flavours/glitch/features/ui/components/column";
|
|
import { boostModal, favouriteModal, deleteModal } from "flavours/glitch/initial_state";
|
|
import { makeGetStatus, makeGetPictureInPicture } from "flavours/glitch/selectors";
|
|
import { autoUnfoldCW } from "flavours/glitch/utils/content_warning";
|
|
|
|
import ColumnHeader from "../../components/column_header";
|
|
import { attachFullscreenListener, detachFullscreenListener, isFullscreen } from "../ui/util/fullscreen";
|
|
|
|
import ActionBar from "./components/action_bar";
|
|
import DetailedStatus from "./components/detailed_status";
|
|
|
|
const messages = defineMessages({
|
|
deleteConfirm: { id: "confirmations.delete.confirm", defaultMessage: "Delete" },
|
|
deleteMessage: { id: "confirmations.delete.message", defaultMessage: "Are you sure you want to delete this status?" },
|
|
redraftConfirm: { id: "confirmations.redraft.confirm", defaultMessage: "Delete & redraft" },
|
|
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." },
|
|
revealAll: { id: "status.show_more_all", defaultMessage: "Show more for all" },
|
|
hideAll: { id: "status.show_less_all", defaultMessage: "Show less for all" },
|
|
statusTitleWithAttachments: { id: "status.title.with_attachments", defaultMessage: "{user} posted {attachmentCount, plural, one {an attachment} other {# attachments}}" },
|
|
detailedStatus: { id: "status.detailed_status", defaultMessage: "Detailed conversation view" },
|
|
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?" },
|
|
tootHeading: { id: "account.posts_with_replies", defaultMessage: "Posts and replies" },
|
|
});
|
|
|
|
const makeMapStateToProps = () => {
|
|
const getStatus = makeGetStatus();
|
|
const getPictureInPicture = makeGetPictureInPicture();
|
|
|
|
const getAncestorsIds = createSelector([
|
|
(_, { id }) => id,
|
|
state => state.getIn(["contexts", "inReplyTos"]),
|
|
], (statusId, inReplyTos) => {
|
|
let ancestorsIds = Immutable.List();
|
|
ancestorsIds = ancestorsIds.withMutations(mutable => {
|
|
let id = statusId;
|
|
|
|
while (id && !mutable.includes(id)) {
|
|
mutable.unshift(id);
|
|
id = inReplyTos.get(id);
|
|
}
|
|
});
|
|
|
|
return ancestorsIds;
|
|
});
|
|
|
|
const getDescendantsIds = createSelector([
|
|
(_, { id }) => id,
|
|
state => state.getIn(["contexts", "replies"]),
|
|
state => state.get("statuses"),
|
|
], (statusId, contextReplies, statuses) => {
|
|
let descendantsIds = [];
|
|
const ids = [statusId];
|
|
|
|
while (ids.length > 0) {
|
|
let id = ids.pop();
|
|
const replies = contextReplies.get(id);
|
|
|
|
if (statusId !== id) {
|
|
descendantsIds.push(id);
|
|
}
|
|
|
|
if (replies) {
|
|
replies.reverse().forEach(reply => {
|
|
if (!ids.includes(reply) && !descendantsIds.includes(reply) && statusId !== reply) {
|
|
ids.push(reply);
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
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;
|
|
}
|
|
});
|
|
}
|
|
|
|
return Immutable.List(descendantsIds);
|
|
});
|
|
|
|
const mapStateToProps = (state, props) => {
|
|
const status = getStatus(state, { id: props.params.statusId });
|
|
|
|
let ancestorsIds = Immutable.List();
|
|
let descendantsIds = Immutable.List();
|
|
|
|
if (status) {
|
|
ancestorsIds = getAncestorsIds(state, { id: status.get("in_reply_to_id") });
|
|
descendantsIds = getDescendantsIds(state, { id: status.get("id") });
|
|
}
|
|
|
|
return {
|
|
isLoading: state.getIn(["statuses", props.params.statusId, "isLoading"]),
|
|
status,
|
|
ancestorsIds,
|
|
descendantsIds,
|
|
settings: state.get("local_settings"),
|
|
askReplyConfirmation: state.getIn(["local_settings", "confirm_before_clearing_draft"]) && state.getIn(["compose", "text"]).trim().length !== 0,
|
|
domain: state.getIn(["meta", "domain"]),
|
|
pictureInPicture: getPictureInPicture(state, { id: props.params.statusId }),
|
|
};
|
|
};
|
|
|
|
return mapStateToProps;
|
|
};
|
|
|
|
const truncate = (str, num) => {
|
|
const arr = Array.from(str);
|
|
if (arr.length > num) {
|
|
return arr.slice(0, num).join("") + "…";
|
|
} else {
|
|
return str;
|
|
}
|
|
};
|
|
|
|
const titleFromStatus = (intl, status) => {
|
|
const displayName = status.getIn(["account", "display_name"]);
|
|
const username = status.getIn(["account", "username"]);
|
|
const user = displayName.trim().length === 0 ? username : displayName;
|
|
const text = status.get("search_index");
|
|
const attachmentCount = status.get("media_attachments").size;
|
|
|
|
return text ? `${user}: "${truncate(text, 30)}"` : intl.formatMessage(messages.statusTitleWithAttachments, { user, attachmentCount });
|
|
};
|
|
|
|
class Status extends ImmutablePureComponent {
|
|
|
|
static contextTypes = {
|
|
router: PropTypes.object,
|
|
identity: PropTypes.object,
|
|
};
|
|
|
|
static propTypes = {
|
|
params: PropTypes.object.isRequired,
|
|
dispatch: PropTypes.func.isRequired,
|
|
status: ImmutablePropTypes.map,
|
|
isLoading: PropTypes.bool,
|
|
settings: ImmutablePropTypes.map.isRequired,
|
|
ancestorsIds: ImmutablePropTypes.list.isRequired,
|
|
descendantsIds: ImmutablePropTypes.list.isRequired,
|
|
intl: PropTypes.object.isRequired,
|
|
askReplyConfirmation: PropTypes.bool,
|
|
multiColumn: PropTypes.bool,
|
|
domain: PropTypes.string.isRequired,
|
|
pictureInPicture: ImmutablePropTypes.contains({
|
|
inUse: PropTypes.bool,
|
|
available: PropTypes.bool,
|
|
}),
|
|
};
|
|
|
|
state = {
|
|
fullscreen: false,
|
|
isExpanded: undefined,
|
|
threadExpanded: undefined,
|
|
statusId: undefined,
|
|
loadedStatusId: undefined,
|
|
showMedia: undefined,
|
|
revealBehindCW: undefined,
|
|
};
|
|
|
|
componentDidMount () {
|
|
attachFullscreenListener(this.onFullScreenChange);
|
|
this.props.dispatch(fetchStatus(this.props.params.statusId));
|
|
this._scrollStatusIntoView();
|
|
}
|
|
|
|
static getDerivedStateFromProps(props, state) {
|
|
let update = {};
|
|
let updated = false;
|
|
|
|
if (props.params.statusId && state.statusId !== props.params.statusId) {
|
|
props.dispatch(fetchStatus(props.params.statusId));
|
|
update.threadExpanded = undefined;
|
|
update.statusId = props.params.statusId;
|
|
updated = true;
|
|
}
|
|
|
|
const revealBehindCW = props.settings.getIn(["media", "reveal_behind_cw"]);
|
|
if (revealBehindCW !== state.revealBehindCW) {
|
|
update.revealBehindCW = revealBehindCW;
|
|
if (revealBehindCW) {
|
|
update.showMedia = defaultMediaVisibility(props.status, props.settings);
|
|
}
|
|
updated = true;
|
|
}
|
|
|
|
if (props.status && state.loadedStatusId !== props.status.get("id")) {
|
|
update.showMedia = defaultMediaVisibility(props.status, props.settings);
|
|
update.loadedStatusId = props.status.get("id");
|
|
update.isExpanded = autoUnfoldCW(props.settings, props.status);
|
|
updated = true;
|
|
}
|
|
|
|
return updated ? update : null;
|
|
}
|
|
|
|
handleToggleHidden = () => {
|
|
const { status } = this.props;
|
|
|
|
if (this.props.settings.getIn(["content_warnings", "shared_state"])) {
|
|
if (status.get("hidden")) {
|
|
this.props.dispatch(revealStatus(status.get("id")));
|
|
} else {
|
|
this.props.dispatch(hideStatus(status.get("id")));
|
|
}
|
|
} else if (this.props.status.get("spoiler_text")) {
|
|
this.setExpansion(!this.state.isExpanded);
|
|
}
|
|
};
|
|
|
|
handleToggleMediaVisibility = () => {
|
|
this.setState({ showMedia: !this.state.showMedia });
|
|
};
|
|
|
|
handleModalFavourite = (status) => {
|
|
this.props.dispatch(favourite(status));
|
|
};
|
|
|
|
handleFavouriteClick = (status, e) => {
|
|
const { dispatch } = this.props;
|
|
const { signedIn } = this.context.identity;
|
|
|
|
if (signedIn) {
|
|
if (status.get("favourited")) {
|
|
dispatch(unfavourite(status));
|
|
} else {
|
|
if ((e && e.shiftKey) || !favouriteModal) {
|
|
this.handleModalFavourite(status);
|
|
} else {
|
|
dispatch(openModal({
|
|
modalType: "FAVOURITE",
|
|
modalProps: {
|
|
status,
|
|
onFavourite: this.handleModalFavourite,
|
|
},
|
|
}));
|
|
}
|
|
}
|
|
} else {
|
|
dispatch(openModal({
|
|
modalType: "INTERACTION",
|
|
modalProps: {
|
|
type: "favourite",
|
|
accountId: status.getIn(["account", "id"]),
|
|
url: status.get("uri"),
|
|
},
|
|
}));
|
|
}
|
|
};
|
|
|
|
handlePin = (status) => {
|
|
if (status.get("pinned")) {
|
|
this.props.dispatch(unpin(status));
|
|
} else {
|
|
this.props.dispatch(pin(status));
|
|
}
|
|
};
|
|
|
|
handleReplyClick = (status) => {
|
|
const { askReplyConfirmation, dispatch, intl } = this.props;
|
|
const { signedIn } = this.context.identity;
|
|
|
|
if (signedIn) {
|
|
if (askReplyConfirmation) {
|
|
dispatch(openModal({
|
|
modalType: "CONFIRM",
|
|
modalProps: {
|
|
message: intl.formatMessage(messages.replyMessage),
|
|
confirm: intl.formatMessage(messages.replyConfirm),
|
|
onDoNotAsk: () => dispatch(changeLocalSetting(["confirm_before_clearing_draft"], false)),
|
|
onConfirm: () => dispatch(replyCompose(status, this.context.router.history)),
|
|
},
|
|
}));
|
|
} else {
|
|
dispatch(replyCompose(status, this.context.router.history));
|
|
}
|
|
} else {
|
|
dispatch(openModal({
|
|
modalType: "INTERACTION",
|
|
modalProps: {
|
|
type: "reply",
|
|
accountId: status.getIn(["account", "id"]),
|
|
url: status.get("uri"),
|
|
},
|
|
}));
|
|
}
|
|
};
|
|
|
|
handleModalReblog = (status, privacy) => {
|
|
const { dispatch } = this.props;
|
|
|
|
if (status.get("reblogged")) {
|
|
dispatch(unreblog(status));
|
|
} else {
|
|
dispatch(reblog(status, privacy));
|
|
}
|
|
};
|
|
|
|
handleReblogClick = (status, e) => {
|
|
const { settings, dispatch } = this.props;
|
|
const { signedIn } = this.context.identity;
|
|
|
|
if (signedIn) {
|
|
if (settings.get("confirm_boost_missing_media_description") && status.get("media_attachments").some(item => !item.get("description")) && !status.get("reblogged")) {
|
|
dispatch(initBoostModal({ status, onReblog: this.handleModalReblog, missingMediaDescription: true }));
|
|
} else if ((e && e.shiftKey) || !boostModal) {
|
|
this.handleModalReblog(status);
|
|
} else {
|
|
dispatch(initBoostModal({ status, onReblog: this.handleModalReblog }));
|
|
}
|
|
} else {
|
|
dispatch(openModal({
|
|
modalType: "INTERACTION",
|
|
modalProps: {
|
|
type: "reblog",
|
|
accountId: status.getIn(["account", "id"]),
|
|
url: status.get("uri"),
|
|
},
|
|
}));
|
|
}
|
|
};
|
|
|
|
handleBookmarkClick = (status) => {
|
|
if (status.get("bookmarked")) {
|
|
this.props.dispatch(unbookmark(status));
|
|
} else {
|
|
this.props.dispatch(bookmark(status));
|
|
}
|
|
};
|
|
|
|
handleDeleteClick = (status, history, withRedraft = false) => {
|
|
const { dispatch, intl } = this.props;
|
|
|
|
if (!deleteModal) {
|
|
dispatch(deleteStatus(status.get("id"), history, withRedraft));
|
|
} else {
|
|
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)),
|
|
},
|
|
}));
|
|
}
|
|
};
|
|
|
|
handleEditClick = (status, history) => {
|
|
this.props.dispatch(editStatus(status.get("id"), history));
|
|
};
|
|
|
|
handleDirectClick = (account, router) => {
|
|
this.props.dispatch(directCompose(account, router));
|
|
};
|
|
|
|
handleMentionClick = (account, router) => {
|
|
this.props.dispatch(mentionCompose(account, router));
|
|
};
|
|
|
|
handleOpenMedia = (media, index, lang) => {
|
|
this.props.dispatch(openModal({
|
|
modalType: "MEDIA",
|
|
modalProps: { statusId: this.props.status.get("id"), media, index, lang },
|
|
}));
|
|
};
|
|
|
|
handleOpenVideo = (media, lang, options) => {
|
|
this.props.dispatch(openModal({
|
|
modalType: "VIDEO",
|
|
modalProps: { statusId: this.props.status.get("id"), media, lang, options },
|
|
}));
|
|
};
|
|
|
|
handleHotkeyOpenMedia = e => {
|
|
const { status } = this.props;
|
|
|
|
e.preventDefault();
|
|
|
|
if (status.get("media_attachments").size > 0) {
|
|
if (status.getIn(["media_attachments", 0, "type"]) === "video") {
|
|
this.handleOpenVideo(status.getIn(["media_attachments", 0]), { startTime: 0 });
|
|
} else {
|
|
this.handleOpenMedia(status.get("media_attachments"), 0);
|
|
}
|
|
}
|
|
};
|
|
|
|
handleMuteClick = (account) => {
|
|
this.props.dispatch(initMuteModal(account));
|
|
};
|
|
|
|
handleConversationMuteClick = (status) => {
|
|
if (status.get("muted")) {
|
|
this.props.dispatch(unmuteStatus(status.get("id")));
|
|
} else {
|
|
this.props.dispatch(muteStatus(status.get("id")));
|
|
}
|
|
};
|
|
|
|
handleToggleAll = () => {
|
|
const { status, ancestorsIds, descendantsIds, settings } = this.props;
|
|
const statusIds = [status.get("id")].concat(ancestorsIds.toJS(), descendantsIds.toJS());
|
|
let { isExpanded } = this.state;
|
|
|
|
if (settings.getIn(["content_warnings", "shared_state"])) {
|
|
isExpanded = !status.get("hidden");
|
|
}
|
|
|
|
if (!isExpanded) {
|
|
this.props.dispatch(revealStatus(statusIds));
|
|
} else {
|
|
this.props.dispatch(hideStatus(statusIds));
|
|
}
|
|
|
|
this.setState({ isExpanded: !isExpanded, threadExpanded: !isExpanded });
|
|
};
|
|
|
|
handleTranslate = status => {
|
|
const { dispatch } = this.props;
|
|
|
|
if (status.get("translation")) {
|
|
dispatch(undoStatusTranslation(status.get("id"), status.get("poll")));
|
|
} else {
|
|
dispatch(translateStatus(status.get("id")));
|
|
}
|
|
};
|
|
|
|
handleBlockClick = (status) => {
|
|
const { dispatch } = this.props;
|
|
const account = status.get("account");
|
|
dispatch(initBlockModal(account));
|
|
};
|
|
|
|
handleReport = (status) => {
|
|
this.props.dispatch(initReport(status.get("account"), status));
|
|
};
|
|
|
|
handleEmbed = (status) => {
|
|
this.props.dispatch(openModal({
|
|
modalType: "EMBED",
|
|
modalProps: { id: status.get("id") },
|
|
}));
|
|
};
|
|
|
|
handleHotkeyToggleSensitive = () => {
|
|
this.handleToggleMediaVisibility();
|
|
};
|
|
|
|
handleHotkeyMoveUp = () => {
|
|
this.handleMoveUp(this.props.status.get("id"));
|
|
};
|
|
|
|
handleHotkeyMoveDown = () => {
|
|
this.handleMoveDown(this.props.status.get("id"));
|
|
};
|
|
|
|
handleHotkeyReply = e => {
|
|
e.preventDefault();
|
|
this.handleReplyClick(this.props.status);
|
|
};
|
|
|
|
handleHotkeyFavourite = () => {
|
|
this.handleFavouriteClick(this.props.status);
|
|
};
|
|
|
|
handleHotkeyBoost = () => {
|
|
this.handleReblogClick(this.props.status);
|
|
};
|
|
|
|
handleHotkeyBookmark = () => {
|
|
this.handleBookmarkClick(this.props.status);
|
|
};
|
|
|
|
handleHotkeyMention = e => {
|
|
e.preventDefault();
|
|
this.handleMentionClick(this.props.status);
|
|
};
|
|
|
|
handleHotkeyOpenProfile = () => {
|
|
this.context.router.history.push(`/@${this.props.status.getIn(["account", "acct"])}`);
|
|
};
|
|
|
|
handleMoveUp = id => {
|
|
const { status, ancestorsIds, descendantsIds } = this.props;
|
|
|
|
if (id === status.get("id")) {
|
|
this._selectChild(ancestorsIds.size - 1, true);
|
|
} else {
|
|
let index = ancestorsIds.indexOf(id);
|
|
|
|
if (index === -1) {
|
|
index = descendantsIds.indexOf(id);
|
|
this._selectChild(ancestorsIds.size + index, true);
|
|
} else {
|
|
this._selectChild(index - 1, true);
|
|
}
|
|
}
|
|
};
|
|
|
|
handleMoveDown = id => {
|
|
const { status, ancestorsIds, descendantsIds } = this.props;
|
|
|
|
if (id === status.get("id")) {
|
|
this._selectChild(ancestorsIds.size + 1, false);
|
|
} else {
|
|
let index = ancestorsIds.indexOf(id);
|
|
|
|
if (index === -1) {
|
|
index = descendantsIds.indexOf(id);
|
|
this._selectChild(ancestorsIds.size + index + 2, false);
|
|
} else {
|
|
this._selectChild(index + 1, false);
|
|
}
|
|
}
|
|
};
|
|
|
|
_selectChild (index, align_top) {
|
|
const container = this.node;
|
|
const element = container.querySelectorAll(".focusable")[index];
|
|
|
|
if (element) {
|
|
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);
|
|
}
|
|
element.focus();
|
|
}
|
|
}
|
|
|
|
handleHeaderClick = () => {
|
|
this.column.scrollTop();
|
|
};
|
|
|
|
renderChildren (list, ancestors) {
|
|
const { params: { statusId } } = this.props;
|
|
|
|
return list.map((id, i) => (
|
|
<StatusContainer
|
|
key={id}
|
|
id={id}
|
|
expanded={this.state.threadExpanded}
|
|
onMoveUp={this.handleMoveUp}
|
|
onMoveDown={this.handleMoveDown}
|
|
contextType='thread'
|
|
previousId={i > 0 ? list.get(i - 1) : undefined}
|
|
nextId={list.get(i + 1) || (ancestors && statusId)}
|
|
rootId={statusId}
|
|
/>
|
|
));
|
|
}
|
|
|
|
setExpansion = value => {
|
|
this.setState({ isExpanded: value });
|
|
};
|
|
|
|
setRef = c => {
|
|
this.node = c;
|
|
};
|
|
|
|
setColumnRef = c => {
|
|
this.column = c;
|
|
};
|
|
|
|
_scrollStatusIntoView () {
|
|
const { status, multiColumn } = this.props;
|
|
|
|
if (status) {
|
|
window.requestAnimationFrame(() => {
|
|
this.node?.querySelector(".detailed-status__wrapper")?.scrollIntoView(true);
|
|
|
|
// 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);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
componentDidUpdate (prevProps) {
|
|
const { status, ancestorsIds } = this.props;
|
|
|
|
if (status && (ancestorsIds.size > prevProps.ancestorsIds.size || prevProps.status?.get("id") !== status.get("id"))) {
|
|
this._scrollStatusIntoView();
|
|
}
|
|
}
|
|
|
|
componentWillUnmount () {
|
|
detachFullscreenListener(this.onFullScreenChange);
|
|
}
|
|
|
|
onFullScreenChange = () => {
|
|
this.setState({ fullscreen: isFullscreen() });
|
|
};
|
|
|
|
shouldUpdateScroll = (prevRouterProps, { location }) => {
|
|
// Do not change scroll when opening a modal
|
|
if (location.state?.mastodonModalKey !== prevRouterProps?.location?.state?.mastodonModalKey) {
|
|
return false;
|
|
}
|
|
|
|
// Scroll to focused post if it is loaded
|
|
const child = this.node?.querySelector(".detailed-status__wrapper");
|
|
if (child) {
|
|
return [0, child.offsetTop];
|
|
}
|
|
|
|
// Do not scroll otherwise, `componentDidUpdate` will take care of that
|
|
return false;
|
|
};
|
|
|
|
render () {
|
|
let ancestors, descendants;
|
|
const { isLoading, status, settings, ancestorsIds, descendantsIds, intl, domain, multiColumn, pictureInPicture } = this.props;
|
|
const { fullscreen } = this.state;
|
|
|
|
if (isLoading) {
|
|
return (
|
|
<Column>
|
|
<LoadingIndicator />
|
|
</Column>
|
|
);
|
|
}
|
|
|
|
if (status === null) {
|
|
return (
|
|
<BundleColumnError multiColumn={multiColumn} errorType='routing' />
|
|
);
|
|
}
|
|
|
|
const isExpanded = settings.getIn(["content_warnings", "shared_state"]) ? !status.get("hidden") : this.state.isExpanded;
|
|
|
|
if (ancestorsIds && ancestorsIds.size > 0) {
|
|
ancestors = <>{this.renderChildren(ancestorsIds, true)}</>;
|
|
}
|
|
|
|
if (descendantsIds && descendantsIds.size > 0) {
|
|
descendants = <>{this.renderChildren(descendantsIds)}</>;
|
|
}
|
|
|
|
const isLocal = status.getIn(["account", "acct"], "").indexOf("@") === -1;
|
|
const isIndexable = !status.getIn(["account", "noindex"]);
|
|
|
|
const handlers = {
|
|
moveUp: this.handleHotkeyMoveUp,
|
|
moveDown: this.handleHotkeyMoveDown,
|
|
reply: this.handleHotkeyReply,
|
|
favourite: this.handleHotkeyFavourite,
|
|
boost: this.handleHotkeyBoost,
|
|
bookmark: this.handleHotkeyBookmark,
|
|
mention: this.handleHotkeyMention,
|
|
openProfile: this.handleHotkeyOpenProfile,
|
|
toggleSpoiler: this.handleToggleHidden,
|
|
toggleSensitive: this.handleHotkeyToggleSensitive,
|
|
openMedia: this.handleHotkeyOpenMedia,
|
|
};
|
|
|
|
return (
|
|
<Column bindToDocument={!multiColumn} ref={this.setColumnRef} label={intl.formatMessage(messages.detailedStatus)}>
|
|
<ColumnHeader
|
|
icon='chat-circle-text'
|
|
title={intl.formatMessage(messages.tootHeading)}
|
|
onClick={this.handleHeaderClick}
|
|
showBackButton
|
|
multiColumn={multiColumn}
|
|
extraButton={(
|
|
<button type='button' className='column-header__button' title={intl.formatMessage(!isExpanded ? messages.revealAll : messages.hideAll)} aria-label={intl.formatMessage(!isExpanded ? messages.revealAll : messages.hideAll)} onClick={this.handleToggleAll}><Icon id={!isExpanded ? "eye-slash" : "eye"} /></button>
|
|
)}
|
|
/>
|
|
|
|
<ScrollContainer scrollKey='thread' shouldUpdateScroll={this.shouldUpdateScroll}>
|
|
<div className={classNames("scrollable", { fullscreen })} ref={this.setRef}>
|
|
{ancestors}
|
|
|
|
<HotKeys handlers={handlers}>
|
|
<div className={classNames("focusable", "detailed-status__wrapper", `detailed-status__wrapper-${status.get("visibility")}`)} tabIndex={0} aria-label={textForScreenReader(intl, status, false, isExpanded)}>
|
|
<DetailedStatus
|
|
key={`details-${status.get("id")}`}
|
|
status={status}
|
|
settings={settings}
|
|
onOpenVideo={this.handleOpenVideo}
|
|
onOpenMedia={this.handleOpenMedia}
|
|
expanded={isExpanded}
|
|
onToggleHidden={this.handleToggleHidden}
|
|
onTranslate={this.handleTranslate}
|
|
domain={domain}
|
|
showMedia={this.state.showMedia}
|
|
onToggleMediaVisibility={this.handleToggleMediaVisibility}
|
|
pictureInPicture={pictureInPicture}
|
|
/>
|
|
|
|
<ActionBar
|
|
key={`action-bar-${status.get("id")}`}
|
|
status={status}
|
|
onReply={this.handleReplyClick}
|
|
onFavourite={this.handleFavouriteClick}
|
|
onReblog={this.handleReblogClick}
|
|
onBookmark={this.handleBookmarkClick}
|
|
onDelete={this.handleDeleteClick}
|
|
onEdit={this.handleEditClick}
|
|
onDirect={this.handleDirectClick}
|
|
onMention={this.handleMentionClick}
|
|
onMute={this.handleMuteClick}
|
|
onMuteConversation={this.handleConversationMuteClick}
|
|
onBlock={this.handleBlockClick}
|
|
onReport={this.handleReport}
|
|
onPin={this.handlePin}
|
|
onEmbed={this.handleEmbed}
|
|
/>
|
|
</div>
|
|
</HotKeys>
|
|
|
|
{descendants}
|
|
</div>
|
|
</ScrollContainer>
|
|
|
|
<Helmet>
|
|
<title>{titleFromStatus(intl, status)}</title>
|
|
<meta name='robots' content={(isLocal && isIndexable) ? "all" : "noindex"} />
|
|
<link rel='canonical' href={status.get("url")} />
|
|
</Helmet>
|
|
</Column>
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
export default injectIntl(connect(makeMapStateToProps)(Status));
|