...
|
...
|
@@ -101,7 +101,7 @@ export function tnmPostFailure(sid, error) { |
|
|
|
|
|
export function userThatNotMePosts(sid) {
|
|
|
return (dispatch, getState) => {
|
|
|
let {userThatNotMe} = getState();
|
|
|
let {user, userThatNotMe} = getState();
|
|
|
let item = userThatNotMe.items.get(sid);
|
|
|
if (item.posts.isFetching || item.posts.error) {
|
|
|
return;
|
...
|
...
|
@@ -112,7 +112,8 @@ export function userThatNotMePosts(sid) { |
|
|
let uid = item.profile.uid;
|
|
|
let lastedTime = item.posts.lastedTime;
|
|
|
let limit = 10;
|
|
|
return new UserService().posts(uid, lastedTime, limit)
|
|
|
let loginUid = user.profile.uid;
|
|
|
return new UserService().posts(uid,loginUid, lastedTime, limit)
|
|
|
.then(json => {
|
|
|
let payload = parseUserThatNotMePosts(json);
|
|
|
let oldList = item.posts.list.toJS();
|
...
|
...
|
|