1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-24 05:21:28 +00:00

allow subscribing to twitter feeds without oauth (if require auth checkbox is unset)

This commit is contained in:
Andrew Dolgov
2012-01-26 13:48:14 +04:00
parent ec418193a8
commit aa60999b97
3 changed files with 7 additions and 13 deletions

View File

@@ -188,8 +188,9 @@ class RPC extends Protected_Handler {
$cat = db_escape_string($_REQUEST['cat']);
$login = db_escape_string($_REQUEST['login']);
$pass = db_escape_string($_REQUEST['pass']);
$need_auth = db_escape_string($_REQUEST['need_auth']) != "";
$rc = subscribe_to_feed($this->link, $feed, $cat, $login, $pass);
$rc = subscribe_to_feed($this->link, $feed, $cat, $login, $pass, $need_auth);
print json_encode(array("result" => $rc));
}