From 06f2e1d321742aca3f8b9736da69cb1ae160182d Mon Sep 17 00:00:00 2001 From: Alexandre Morignot <erdnaxeli@gmail.com> Date: Thu, 22 Aug 2013 01:58:59 +0200 Subject: [PATCH] we don't reinsert the context of a url already inserted --- lib/sites/parser.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/sites/parser.pm b/lib/sites/parser.pm index e34a689..841ee35 100644 --- a/lib/sites/parser.pm +++ b/lib/sites/parser.pm @@ -80,6 +80,9 @@ sub parse { or $log->error("Couldn't finish transaction: " . $dbh->errstr); $id = $sth->fetch->[0]; + + # we don't want to reinsert the context, so we delete it + delete $content{'context'}; } # message sur irc -- GitLab