From 9f4ffc9686ca328fe7904d9c4b58a027db8dd367 Mon Sep 17 00:00:00 2001
From: mgabdev <>
Date: Mon, 14 Sep 2020 11:45:52 -0500
Subject: [PATCH] Added TimelineInjectionBase to StatusList every 18th slot in
home_timeline
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
• Added:
- TimelineInjectionBase to StatusList every 18th slot in home_timeline
---
app/javascript/gabsocial/components/status_list.js | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/app/javascript/gabsocial/components/status_list.js b/app/javascript/gabsocial/components/status_list.js
index de32e369..a32b264d 100644
--- a/app/javascript/gabsocial/components/status_list.js
+++ b/app/javascript/gabsocial/components/status_list.js
@@ -7,13 +7,14 @@ import ImmutablePureComponent from 'react-immutable-pure-component'
import { createSelector } from 'reselect'
import debounce from 'lodash.debounce'
import { me, promotions } from '../initial_state'
-import { dequeueTimeline } from '../actions/timelines'
-import { scrollTopTimeline } from '../actions/timelines'
+import { dequeueTimeline, scrollTopTimeline } from '../actions/timelines'
+import { showTimelineInjection } from '../actions/timeline_injections'
import { fetchStatus, fetchContext } from '../actions/statuses'
import StatusContainer from '../containers/status_container'
import StatusPlaceholder from './placeholder/status_placeholder'
import ScrollableList from './scrollable_list'
import TimelineQueueButtonHeader from './timeline_queue_button_header'
+import TimelineInjectionBase from './timeline_injections/timeline_injection_base'
class StatusList extends ImmutablePureComponent {
@@ -204,6 +205,13 @@ class StatusList extends ImmutablePureComponent {
)
}
}
+
+ if (i % 18 === 0 && i !== 0 && scrollKey === 'home_timeline') {
+ scrollableContent.push(
+
+ )
+ }
+
scrollableContent.push(