mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-23 05:13:04 +03:00
dont add sponsored post if alread in feed
This commit is contained in:
parent
71577bffb2
commit
2ee7b2b7a3
@ -246,7 +246,7 @@ PODS:
|
||||
- React
|
||||
- react-native-version-number (0.3.6):
|
||||
- React
|
||||
- react-native-webview (7.6.0):
|
||||
- react-native-webview (8.0.4):
|
||||
- React
|
||||
- React-RCTActionSheet (0.61.5):
|
||||
- React-Core/RCTActionSheetHeaders (= 0.61.5)
|
||||
@ -509,7 +509,7 @@ SPEC CHECKSUMS:
|
||||
react-native-fast-image: 6d50167ad4d68b59640ceead8c2bc4e58d91d8bd
|
||||
react-native-netinfo: 817823a90f13ced48413875c0820df04c3aae28d
|
||||
react-native-version-number: b415bbec6a13f2df62bf978e85bc0d699462f37f
|
||||
react-native-webview: db4682f1698ab4b17a5e88f951031d203ff8aea8
|
||||
react-native-webview: 3f5aa91c3cb083ea4762e006b9653291a96a777a
|
||||
React-RCTActionSheet: 600b4d10e3aea0913b5a92256d2719c0cdd26d76
|
||||
React-RCTAnimation: 791a87558389c80908ed06cc5dfc5e7920dfa360
|
||||
React-RCTBlob: d89293cc0236d9cb0933d85e430b0bbe81ad1d72
|
||||
|
Binary file not shown.
@ -10,8 +10,7 @@
|
||||
"scripts": {
|
||||
"version": "./version-ios.sh",
|
||||
"postversion": "react-native-version",
|
||||
"start": "node node_modules/react-native/local-cli/cli.js start",
|
||||
"eject": "node node_modules/react-native/local-cli/cli.js eject",
|
||||
"start": "react-native start",
|
||||
"android": "react-native run-android",
|
||||
"ios": "react-native run-ios",
|
||||
"test": "node node_modules/jest/bin/jest.js --watch",
|
||||
|
@ -202,7 +202,7 @@ const PostsView = ({
|
||||
}
|
||||
}
|
||||
|
||||
if (posts.length < 5 && pageType !== 'profiles') {
|
||||
if (posts.length < 7 && pageType !== 'profiles') {
|
||||
setFeedPosts(_posts);
|
||||
}
|
||||
|
||||
@ -340,7 +340,10 @@ const PostsView = ({
|
||||
const ix = index / 3 - 1;
|
||||
if (promotedPosts[ix] !== undefined) {
|
||||
const p = promotedPosts[ix];
|
||||
if (get(p, 'author', null)) {
|
||||
if (
|
||||
get(p, 'author', null) &&
|
||||
posts.filter(x => x.permlink === p.permlink).length <= 0
|
||||
) {
|
||||
e.push(
|
||||
<PostCard
|
||||
key={`${p.author}-${p.permlink}-prom`}
|
||||
|
Loading…
Reference in New Issue
Block a user