]> git.wh0rd.org - tt-rss.git/blobdiff - modules/backend-rpc.php
update translations
[tt-rss.git] / modules / backend-rpc.php
index 8b22bf85080c9eaff9036907aa63494b65413875..afcd82d3f591dc37304c0219f2780b24610a7395 100644 (file)
@@ -87,9 +87,8 @@
                }
 
                if ($subop == "publ") {
-                       $pub = $_REQUEST["pub"];
-                       $id = db_escape_string($_REQUEST["id"]);
-                       $note = trim(strip_tags(db_escape_string($_REQUEST["note"])));
+                       $pub = $_GET["pub"];
+                       $id = db_escape_string($_GET["id"]);
 
                        if ($pub == "1") {
                                $pub = "true";
                                $pub = "false";
                        }
 
-                       if ($note != 'undefined') {
-                               $note_qpart = "note = '$note',";
-                       }
-
                        // FIXME this needs collision testing
 
-                       $result = db_query($link, "UPDATE ttrss_user_entries SET 
-                               $note_qpart
-                               published = $pub
+                       $result = db_query($link, "UPDATE ttrss_user_entries SET published = $pub
                                WHERE ref_id = '$id' AND owner_uid = " . $_SESSION["uid"]);
 
-
-                       print "<rpc-reply>";
-                       
-                       print "<counters>";
+                       print "<rpc-reply><counters>";
                        getGlobalCounters($link);
                        getLabelCounters($link);
                        if (get_pref($link, 'ENABLE_FEED_CATS')) {
                                getCategoryCounters($link);
                        }
-                       print "</counters>";
-
-                       if ($note != 'undefined') {
-                               $note_size = strlen($note);
-                               print "<note id=\"$id\" size=\"$note_size\">";
-                               print "<![CDATA[" . format_article_note($id, $note) . "]]>";
-                               print "</note>";
-                       }
-
-                       print "</rpc-reply>";
+                       print "</counters></rpc-reply>";
 
                        return;
                }