Merge branch 'master' into suspend-user

This commit is contained in:
Chi Vinh Le
2017-05-17 21:50:28 +07:00
3 changed files with 9 additions and 0 deletions
@@ -65,6 +65,7 @@ const EMBED_QUERY = gql`
totalCommentCount(excludeIgnored: $excludeIgnored)
}
me {
id
status
}
...${getDefinitionName(Stream.fragments.root)}
@@ -86,6 +86,7 @@ const withQuery = graphql(
gql`
query EmbedStreamProfileQuery {
me {
id
ignoredUsers {
id,
username,
+7
View File
@@ -1,4 +1,11 @@
const Asset = {
lastComment({id}, _, {loaders: {Comments}}) {
return Comments.getByQuery({
asset_id: id,
limit: 1,
parent_id: null
}).then((data) => data[0]);
},
recentComments({id}, _, {loaders: {Comments}}) {
return Comments.genRecentComments.load(id);
},