我来这里是为了找到帖子的“首次”修订版。我的解决方案参考自这里:discourse/app/serializers/post_revision_serializer.rb at a0bbc346cb5d5b89d1a3efdfa89869349a8b067f · discourse/discourse · GitHub
PostRevision.where(post_id: 46747).order(:number).to_a
这将返回所有原始帖子修订版,包括首次修订。
我来这里是为了找到帖子的“首次”修订版。我的解决方案参考自这里:discourse/app/serializers/post_revision_serializer.rb at a0bbc346cb5d5b89d1a3efdfa89869349a8b067f · discourse/discourse · GitHub
PostRevision.where(post_id: 46747).order(:number).to_a
这将返回所有原始帖子修订版,包括首次修订。