diff --git a/app/soapbox/features/community_timeline/index.js b/app/soapbox/features/community_timeline/index.js
index 0789253fc..44ee6d45f 100644
--- a/app/soapbox/features/community_timeline/index.js
+++ b/app/soapbox/features/community_timeline/index.js
@@ -70,6 +70,12 @@ class CommunityTimeline extends React.PureComponent {
dispatch(expandCommunityTimeline({ maxId, onlyMedia }));
}
+ handleRefresh = () => {
+ const { dispatch, onlyMedia } = this.props;
+ return dispatch(expandCommunityTimeline({ onlyMedia }));
+ }
+
+
render() {
const { intl, onlyMedia, timelineId } = this.props;
@@ -80,6 +86,7 @@ class CommunityTimeline extends React.PureComponent {
scrollKey={`${timelineId}_timeline`}
timelineId={`${timelineId}${onlyMedia ? ':media' : ''}`}
onLoadMore={this.handleLoadMore}
+ onRefresh={this.handleRefresh}
emptyMessage={}
/>
diff --git a/app/soapbox/features/public_timeline/index.js b/app/soapbox/features/public_timeline/index.js
index 8083cf67e..1b3b0e358 100644
--- a/app/soapbox/features/public_timeline/index.js
+++ b/app/soapbox/features/public_timeline/index.js
@@ -94,6 +94,11 @@ class CommunityTimeline extends React.PureComponent {
dispatch(expandPublicTimeline({ maxId, onlyMedia }));
}
+ handleRefresh = () => {
+ const { dispatch, onlyMedia } = this.props;
+ return dispatch(expandPublicTimeline({ onlyMedia }));
+ }
+
render() {
const { intl, onlyMedia, timelineId, siteTitle, showExplanationBox, explanationBoxExpanded } = this.props;
@@ -130,6 +135,7 @@ class CommunityTimeline extends React.PureComponent {
scrollKey={`${timelineId}_timeline`}
timelineId={`${timelineId}${onlyMedia ? ':media' : ''}`}
onLoadMore={this.handleLoadMore}
+ onRefresh={this.handleRefresh}
emptyMessage={}
/>