weixin_40008033
weixin_40008033
2020-12-28 08:42

Side comments

Add side comments to meteor-blog.

  • Added comment collection to store new comments
  • Changed blogShow route to include comment data

Side comments and anonymous comments can be turned on/off using Blog.confg


Blog.config
  comments:
    allowAnonymous: true
    useSideComments: true

resolves #56

该提问来源于开源项目:meteor-blog/meteor-blog

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

8条回答

  • weixin_39565390 weixin_39565390 4月前

    The request looks good to me. Nice job!

    点赞 评论 复制链接分享
  • weixin_40008033 weixin_40008033 4月前

    Thanks :)

    I'm still getting accustomed to this so any feedback is very appreciated.

    点赞 评论 复制链接分享
  • weixin_39933414 weixin_39933414 4月前

    i tried applying this to the http://differential.io/blog but content didn't come up, no errors in console. Wanna test out the PR?

    点赞 评论 复制链接分享
  • weixin_40008033 weixin_40008033 4月前

    do you mean the post content doesn't show or the side comments?

    The side comments will only show on posts saved after the side comment functionality has been added. Should this be changed to apply retroactively?

    点赞 评论 复制链接分享
  • weixin_39612733 weixin_39612733 4月前

    Yes, I want to get it running. I'll test with an empty app, and our website.

    Not sure what's required in the database. Obviously, there will be no comments on past posts, but there should be the ability to go back and leave comments. If there's a migration required, there's actually some migration code in server/boot.coffee that you could put in there.

    点赞 评论 复制链接分享
  • weixin_40008033 weixin_40008033 4月前

    I'll take a look at that now

    点赞 评论 复制链接分享
  • weixin_39612733 weixin_39612733 4月前

    Merged in 6fd2c9108698e447e3b4b0a74dedafea651a2834

    点赞 评论 复制链接分享
  • weixin_39612733 weixin_39612733 4月前

    . Made a few changes and merged. I think I fixed 's issue. Should be in the next release.

    点赞 评论 复制链接分享

相关推荐