Find organization image suggestion and store it as app logo, sync it to assets folder.

This commit is contained in:
Martin Edenhofer 2015-08-03 11:30:45 +02:00
parent 074e90d471
commit 01298449cc

View file

@ -56,7 +56,7 @@ returns
=begin
find organization image suggestion
find organization image suggestion and store it as app logo
result = Service::Image.organization_suggest('edenhofer.de')
@ -72,7 +72,14 @@ returns
backend = load_adapter_by_setting( 'image_backend' )
return if !backend
backend.organization_suggest(domain)
result = backend.organization_suggest(domain)
# sync logo to assets folder
if result
StaticAssets.sync
end
result
end
end