From 1d4daca75d42dee697f1dc48b21fe74a14273dd2 Mon Sep 17 00:00:00 2001
From: Sam <sam.saffron@gmail.com>
Date: Fri, 31 Oct 2014 15:16:08 +1100
Subject: [PATCH] add override for post creation in importer

---
 script/import_scripts/base.rb | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/script/import_scripts/base.rb b/script/import_scripts/base.rb
index 9016dea7ce3..09d0c805b62 100644
--- a/script/import_scripts/base.rb
+++ b/script/import_scripts/base.rb
@@ -364,6 +364,10 @@ class ImportScripts::Base
     new_category
   end
 
+  def created_post(post)
+    # override if needed
+  end
+
   # Iterates through a collection of posts to be imported.
   # It can create topics and replies.
   # Attributes will be passed to the PostCreator.
@@ -396,6 +400,8 @@ class ImportScripts::Base
                 url: new_post.url,
               }
 
+              created_post(new_post)
+
               created += 1
             else
               skipped += 1