forked from e621ng/e621ng
[Seeding] Always enable mascots (#826)
This commit is contained in:
parent
b44f8a7d6f
commit
ba18a9d7b5
@ -38,7 +38,7 @@ def api_request(path)
|
|||||||
end
|
end
|
||||||
|
|
||||||
def import_mascots
|
def import_mascots
|
||||||
api_request("/mascots.json?limit=1").each do |mascot|
|
api_request("/mascots.json?limit=3").each do |mascot|
|
||||||
puts mascot["url_path"]
|
puts mascot["url_path"]
|
||||||
Mascot.create!(
|
Mascot.create!(
|
||||||
creator: CurrentUser.user,
|
creator: CurrentUser.user,
|
||||||
@ -48,7 +48,7 @@ def import_mascots
|
|||||||
artist_url: mascot["artist_url"],
|
artist_url: mascot["artist_url"],
|
||||||
artist_name: mascot["artist_name"],
|
artist_name: mascot["artist_name"],
|
||||||
available_on_string: Danbooru.config.app_name,
|
available_on_string: Danbooru.config.app_name,
|
||||||
active: mascot["active"],
|
active: true,
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user