From 13fa0f8cf86cc8fb375b2db83af4e06eae6b4662 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Thu, 31 Mar 2016 21:34:53 +0530 Subject: [PATCH] FIX: only show regular posts in RSS feed --- app/controllers/posts_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/posts_controller.rb b/app/controllers/posts_controller.rb index 4e5fe2c4a88..1d0fb26e758 100644 --- a/app/controllers/posts_controller.rb +++ b/app/controllers/posts_controller.rb @@ -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)