FIX: only show regular posts in RSS feed

This commit is contained in:
Arpit Jalan 2016-03-31 21:34:53 +05:30
parent 41208b99a1
commit 13fa0f8cf8

View File

@ -92,6 +92,7 @@ class PostsController < ApplicationController
posts = Post.public_posts
.where(user_id: user.id)
.where(post_type: Post.types[:regular])
.order(created_at: :desc)
.includes(:user)
.includes(topic: :category)