]> git.wh0rd.org Git - tt-rss.git/commitdiff
new filter: publish
authorAndrew Dolgov <fox@bah.spb.su>
Thu, 9 Aug 2007 13:39:59 +0000 (14:39 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Thu, 9 Aug 2007 13:39:59 +0000 (14:39 +0100)
functions.php

index 709e2b8e242497f1500a3a33b3ea69545df256dd..ff64a0a7036f90bb009678af597b2a5fe78e839d 100644 (file)
                                                } else {
                                                        $marked = 'false';
                                                }
-                                               
+
+                                               if (find_article_filter($article_filters, 'publish')) {
+                                                       $published = 'true';
+                                               } else {
+                                                       $published = 'false';
+                                               }
+
                                                $result = db_query($link,
                                                        "INSERT INTO ttrss_user_entries 
-                                                               (ref_id, owner_uid, feed_id, unread, last_read, marked) 
+                                                               (ref_id, owner_uid, feed_id, unread, last_read, marked, published
                                                        VALUES ('$ref_id', '$owner_uid', '$feed', $unread,
-                                                               $last_read_qpart, $marked)");
+                                                               $last_read_qpart, $marked, $published)");
                                        }
                                        
                                        $post_needs_update = false;