diff --git a/app/javascript/mastodon/features/firehose/index.jsx b/app/javascript/mastodon/features/firehose/index.jsx
index 9ba4fd5b2b..795286898a 100644
--- a/app/javascript/mastodon/features/firehose/index.jsx
+++ b/app/javascript/mastodon/features/firehose/index.jsx
@@ -21,6 +21,7 @@ import StatusListContainer from '../ui/containers/status_list_container';
const messages = defineMessages({
title: { id: 'column.firehose', defaultMessage: 'Live feeds' },
+ titleDefault: { id: 'column.community', defaultMessage: 'Local timeline' },
});
// TODO: use a proper React context later on
@@ -54,7 +55,7 @@ const ColumnSettings = () => {
);
};
-const Firehose = ({ feedType, multiColumn }) => {
+const Firehose = ({ feedType, defaultColumn, multiColumn }) => {
const dispatch = useAppDispatch();
const intl = useIntl();
const { signedIn } = useIdentity();
@@ -156,12 +157,31 @@ const Firehose = ({ feedType, multiColumn }) => {
/>
);
+ const headerIcon = defaultColumn ? 'users' : 'globe';
+ const headerTitle = defaultColumn ? messages.titleDefault : messages.title;
+
+ const sectionHeadline = defaultColumn || (
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+
return (
{
-
-
-
-
-
-
-
-
-
-
-
-
-
+ {sectionHeadline}
{
}
Firehose.propTypes = {
+ defaultColumn: PropTypes.bool,
multiColumn: PropTypes.bool,
feedType: PropTypes.string,
};
diff --git a/app/javascript/mastodon/features/ui/components/navigation_panel.jsx b/app/javascript/mastodon/features/ui/components/navigation_panel.jsx
index b0f86003f5..a6f6607310 100644
--- a/app/javascript/mastodon/features/ui/components/navigation_panel.jsx
+++ b/app/javascript/mastodon/features/ui/components/navigation_panel.jsx
@@ -20,6 +20,7 @@ const messages = defineMessages({
home: { id: 'tabs_bar.home', defaultMessage: 'Home' },
notifications: { id: 'tabs_bar.notifications', defaultMessage: 'Notifications' },
explore: { id: 'explore.title', defaultMessage: 'Explore' },
+ local: { id: 'column.local', defaultMessage: 'Local' },
firehose: { id: 'column.firehose', defaultMessage: 'Live feeds' },
direct: { id: 'navigation_bar.direct', defaultMessage: 'Private mentions' },
favourites: { id: 'navigation_bar.favourites', defaultMessage: 'Favourites' },
@@ -43,7 +44,7 @@ class NavigationPanel extends Component {
};
isFirehoseActive = (match, location) => {
- return match || location.pathname.startsWith('/public');
+ return (match || location.pathname.startsWith('/public')) && !location.pathname.endsWith('/fixed');
};
render () {
@@ -67,6 +68,7 @@ class NavigationPanel extends Component {
<>
} text={intl.formatMessage(messages.notifications)} />
+
>
)}
diff --git a/app/javascript/mastodon/features/ui/index.jsx b/app/javascript/mastodon/features/ui/index.jsx
index ea0c1b1d78..c1f24a222d 100644
--- a/app/javascript/mastodon/features/ui/index.jsx
+++ b/app/javascript/mastodon/features/ui/index.jsx
@@ -197,6 +197,7 @@ class SwitchingColumnsArea extends PureComponent {
+
diff --git a/app/javascript/mastodon/locales/en.json b/app/javascript/mastodon/locales/en.json
index c641a97707..fb55839db6 100644
--- a/app/javascript/mastodon/locales/en.json
+++ b/app/javascript/mastodon/locales/en.json
@@ -120,6 +120,7 @@
"column.follow_requests": "Follow requests",
"column.home": "Home",
"column.lists": "Lists",
+ "column.local": "Local",
"column.mutes": "Muted users",
"column.notifications": "Notifications",
"column.pins": "Pinned posts",
diff --git a/app/javascript/mastodon/locales/ja.json b/app/javascript/mastodon/locales/ja.json
index 16b6b71bf2..1e600bd3a7 100644
--- a/app/javascript/mastodon/locales/ja.json
+++ b/app/javascript/mastodon/locales/ja.json
@@ -113,6 +113,7 @@
"column.follow_requests": "フォローリクエスト",
"column.home": "ホーム",
"column.lists": "リスト",
+ "column.local": "ローカル",
"column.mutes": "ミュートしたユーザー",
"column.notifications": "通知",
"column.pins": "固定された投稿",
diff --git a/config/routes.rb b/config/routes.rb
index a16257070e..89f0055d28 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -12,6 +12,7 @@ Rails.application.routes.draw do
/home
/public
/public/local
+ /public/local/fixed
/public/remote
/conversations
/lists/(*any)