]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - inc/poche/Poche.class.php
Add ability to tag an article on creation
[github/wallabag/wallabag.git] / inc / poche / Poche.class.php
index a29cb327c18d6d27c48f84b2f05b9195ee7ab892..c7c59878615b774efc436264723b30915416d19d 100755 (executable)
@@ -180,6 +180,13 @@ class Poche
                         }
                     }
 
+                    // if there are tags, add them to the new article
+                    if (isset($_GET['tags'])) {
+                        $_POST['value'] = $_GET['tags'];
+                        $_POST['entry_id'] = $last_id;
+                        $this->action('add_tag', $url);
+                    }
+
                     $this->messages->add('s', _('the link has been added successfully'));
                 }
                 else {