mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-01 17:38:38 +00:00
Add a command to automatically tag all entries for a user
This commit is contained in:
parent
cad8cda7af
commit
625acf3352
9 changed files with 149 additions and 11 deletions
|
@ -458,6 +458,10 @@ class Entry
|
|||
*/
|
||||
public function addTag(Tag $tag)
|
||||
{
|
||||
if ($this->tags->contains($tag)) {
|
||||
return;
|
||||
}
|
||||
|
||||
$this->tags[] = $tag;
|
||||
$tag->addEntry($this);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue