mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
add override for post creation in importer
This commit is contained in:
parent
c3767dff6a
commit
1d4daca75d
1 changed files with 6 additions and 0 deletions
|
@ -364,6 +364,10 @@ class ImportScripts::Base
|
||||||
new_category
|
new_category
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def created_post(post)
|
||||||
|
# override if needed
|
||||||
|
end
|
||||||
|
|
||||||
# Iterates through a collection of posts to be imported.
|
# Iterates through a collection of posts to be imported.
|
||||||
# It can create topics and replies.
|
# It can create topics and replies.
|
||||||
# Attributes will be passed to the PostCreator.
|
# Attributes will be passed to the PostCreator.
|
||||||
|
@ -396,6 +400,8 @@ class ImportScripts::Base
|
||||||
url: new_post.url,
|
url: new_post.url,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
created_post(new_post)
|
||||||
|
|
||||||
created += 1
|
created += 1
|
||||||
else
|
else
|
||||||
skipped += 1
|
skipped += 1
|
||||||
|
|
Loading…
Reference in a new issue