aboutsummaryrefslogtreecommitdiff
path: root/src/java/com/juick/api/Main.java
diff options
context:
space:
mode:
authorGravatar Ugnich Anton2014-08-05 04:49:24 +0700
committerGravatar Ugnich Anton2014-08-05 04:49:24 +0700
commit0742847f430b02d2d9031f1a11799ac7076e9e26 (patch)
tree5ac5bd1a2994d031557849563a1de095a5868006 /src/java/com/juick/api/Main.java
parentb9de1e4cf886ee5b0fbd7025e2cf0fee6166d2ce (diff)
Messages.setPrivacy
Diffstat (limited to 'src/java/com/juick/api/Main.java')
-rw-r--r--src/java/com/juick/api/Main.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/java/com/juick/api/Main.java b/src/java/com/juick/api/Main.java
index 71b70839..5ee4027b 100644
--- a/src/java/com/juick/api/Main.java
+++ b/src/java/com/juick/api/Main.java
@@ -168,6 +168,8 @@ public class Main extends HttpServlet implements Stream.StreamListener {
}
} else if (uri.equals("/messages/set_popular") && vuid == 1) {
messages.doSetPopular(request, response, xmpp);
+ } else if (uri.equals("/messages/set_privacy") && vuid > 0) {
+ messages.doSetPrivacy(request, response, xmpp, vuid);
} else {
response.sendError(404);
}