FEATURE: Add toggle topic visibility button in popup menu.

This commit is contained in:
Guo Xiang Tan
2016-07-27 17:50:13 +08:00
parent 16a383ea1e
commit 36ddb1787e
7 changed files with 107 additions and 11 deletions

View File

@ -554,10 +554,12 @@ class PostsController < ApplicationController
:auto_track,
:typing_duration_msecs,
:composer_open_duration_msecs,
:visible
]
# param munging for WordPress
params[:auto_track] = !(params[:auto_track].to_s == "false") if params[:auto_track]
params[:visible] = (params[:unlist_topic].to_s == "false") if params[:unlist_topic]
if api_key_valid?
# php seems to be sending this incorrectly, don't fight with it