From 3249693ea33fdfa17612493e0f7ffc19d7649301 Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Sat, 22 Feb 2014 19:15:46 -0800 Subject: Adding Author and Feed Cookie. * Adding an Author indicator on the feed. * Adding showfeed cookie to enable/disable feed demo. * Hiding the feed on the introduction chapter. * Adding whitespace compression to all pages. --- src/com/p4square/grow/frontend/FeedResource.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/com/p4square/grow/frontend/FeedResource.java') diff --git a/src/com/p4square/grow/frontend/FeedResource.java b/src/com/p4square/grow/frontend/FeedResource.java index eea89b1..13d0fa0 100644 --- a/src/com/p4square/grow/frontend/FeedResource.java +++ b/src/com/p4square/grow/frontend/FeedResource.java @@ -6,9 +6,6 @@ package com.p4square.grow.frontend; import java.io.IOException; -import java.util.Arrays; -import java.util.HashSet; - import org.restlet.data.Form; import org.restlet.data.Status; import org.restlet.representation.Representation; @@ -26,9 +23,6 @@ import com.p4square.grow.model.UserRecord; public class FeedResource extends ServerResource { private static final Logger LOG = Logger.getLogger(FeedResource.class); - private static final HashSet TOPICS = new HashSet(Arrays.asList("introduction", "seeker", "believer", - "disciple", "teacher")); - private Config mConfig; private FeedData mFeedData; @@ -63,7 +57,7 @@ public class FeedResource extends ServerResource { @Override protected Representation post(Representation entity) { try { - if (mTopic == null || mTopic.length() == 0 || !TOPICS.contains(mTopic)) { + if (mTopic == null || mTopic.length() == 0 || !FeedData.TOPICS.contains(mTopic)) { setStatus(Status.CLIENT_ERROR_NOT_FOUND); return ErrorPage.NOT_FOUND; } -- cgit v1.2.3