Merge branch 'master' into subscriber

This commit is contained in:
Belén Curcio
2017-08-28 13:12:19 -03:00
committed by GitHub
2 changed files with 8 additions and 3 deletions
@@ -37,7 +37,7 @@ class ProfileContainer extends Component {
limit: 5,
cursor: this.props.root.me.comments.endCursor,
},
updateQuery: (previous, {fetchMoreResult:{comments}}) => {
updateQuery: (previous, {fetchMoreResult:{me: {comments}}}) => {
const updated = update(previous, {
me: {
comments: {
@@ -124,8 +124,10 @@ const CommentFragment = gql`
const LOAD_MORE_QUERY = gql`
query TalkSettings_LoadMoreComments($limit: Int, $cursor: Cursor) {
comments(query: {limit: $limit, cursor: $cursor}) {
...TalkSettings_CommentConnectionFragment
me {
comments(query: {limit: $limit, cursor: $cursor}) {
...TalkSettings_CommentConnectionFragment
}
}
}
${CommentFragment}
+3
View File
@@ -21,6 +21,9 @@ const Asset = {
query.parent_id = null;
}
// Include the asset id in the search.
query.asset_id = id;
return Comments.getByQuery(query);
},
commentCount({id, commentCount}, {tags}, {loaders: {Comments}}) {