|
|
@ -8,7 +8,7 @@ import ColumnHeader from 'flavours/glitch/components/column_header';
|
|
|
|
import { expandCommunityTimeline } from 'flavours/glitch/actions/timelines';
|
|
|
|
import { expandCommunityTimeline } from 'flavours/glitch/actions/timelines';
|
|
|
|
import { addColumn, removeColumn, moveColumn, changeColumnParams } from 'flavours/glitch/actions/columns';
|
|
|
|
import { addColumn, removeColumn, moveColumn, changeColumnParams } from 'flavours/glitch/actions/columns';
|
|
|
|
import ColumnSettingsContainer from './containers/column_settings_container';
|
|
|
|
import ColumnSettingsContainer from './containers/column_settings_container';
|
|
|
|
// import SectionHeadline from './components/section_headline';
|
|
|
|
import SectionHeadline from './components/section_headline';
|
|
|
|
import { connectCommunityStream } from 'flavours/glitch/actions/streaming';
|
|
|
|
import { connectCommunityStream } from 'flavours/glitch/actions/streaming';
|
|
|
|
|
|
|
|
|
|
|
|
const messages = defineMessages({
|
|
|
|
const messages = defineMessages({
|
|
|
@ -104,17 +104,15 @@ export default class CommunityTimeline extends React.PureComponent {
|
|
|
|
const { intl, hasUnread, columnId, multiColumn, onlyMedia } = this.props;
|
|
|
|
const { intl, hasUnread, columnId, multiColumn, onlyMedia } = this.props;
|
|
|
|
const pinned = !!columnId;
|
|
|
|
const pinned = !!columnId;
|
|
|
|
|
|
|
|
|
|
|
|
// pending
|
|
|
|
const headline = (
|
|
|
|
//
|
|
|
|
<SectionHeadline
|
|
|
|
// const headline = (
|
|
|
|
timelineId='community'
|
|
|
|
// <SectionHeadline
|
|
|
|
to='/timelines/public/local'
|
|
|
|
// timelineId='community'
|
|
|
|
pinned={pinned}
|
|
|
|
// to='/timelines/public/local'
|
|
|
|
onlyMedia={onlyMedia}
|
|
|
|
// pinned={pinned}
|
|
|
|
onClick={this.handleHeadlineLinkClick}
|
|
|
|
// onlyMedia={onlyMedia}
|
|
|
|
/>
|
|
|
|
// onClick={this.handleHeadlineLinkClick}
|
|
|
|
);
|
|
|
|
// />
|
|
|
|
|
|
|
|
// );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<Column ref={this.setRef} name='local' label={intl.formatMessage(messages.title)}>
|
|
|
|
<Column ref={this.setRef} name='local' label={intl.formatMessage(messages.title)}>
|
|
|
@ -132,7 +130,7 @@ export default class CommunityTimeline extends React.PureComponent {
|
|
|
|
</ColumnHeader>
|
|
|
|
</ColumnHeader>
|
|
|
|
|
|
|
|
|
|
|
|
<StatusListContainer
|
|
|
|
<StatusListContainer
|
|
|
|
// prepend={headline}
|
|
|
|
prepend={headline}
|
|
|
|
trackScroll={!pinned}
|
|
|
|
trackScroll={!pinned}
|
|
|
|
scrollKey={`community_timeline-${columnId}`}
|
|
|
|
scrollKey={`community_timeline-${columnId}`}
|
|
|
|
shouldUpdateScroll={this.shouldUpdateScroll}
|
|
|
|
shouldUpdateScroll={this.shouldUpdateScroll}
|
|
|
|