diff --git a/api/resolvers/item.js b/api/resolvers/item.js index 51085ba2..cf3d60fc 100644 --- a/api/resolvers/item.js +++ b/api/resolvers/item.js @@ -54,7 +54,8 @@ function commentsOrderByClause (me, models, sort) { async function comments (me, models, item, sort, cursor) { const orderBy = commentsOrderByClause(me, models, sort) - if (item.nDirectComments === 0) { + // if we're logged in, there might be pending comments from us we want to show but weren't counted + if (!me && item.nDirectComments === 0) { return { comments: [], cursor: null @@ -1240,7 +1241,8 @@ export default { return item.comments } - if (item.ncomments === 0) { + // if we're logged in, there might be pending comments from us we want to show but weren't counted + if (!me && item.ncomments === 0) { return { comments: [], cursor: null