mirror of
https://github.com/sky-systems/sky_phone.git
synced 2026-08-29 21:01:37 +00:00
7b4e445394
* TRY - isolate FiveManage media upload verification * TRY - verify unindexed FiveManage storage objects * FIX - bind FiveManage uploads by storage key * FIX - match FiveManage camera upload flow * FIX - match FiveManage memo upload flow
18 lines
396 B
Lua
18 lines
396 B
Lua
SkyPhoneMediaProviderConfig = {}
|
|
|
|
local function trim_key(value)
|
|
if type(value) ~= "string" then
|
|
return ""
|
|
end
|
|
return value:match("^%s*(.-)%s*$")
|
|
end
|
|
|
|
function SkyPhoneMediaProviderConfig.FiveManageApiKey(override_key)
|
|
local api_key = trim_key(override_key)
|
|
if api_key ~= "" then
|
|
return api_key
|
|
end
|
|
|
|
return trim_key(Config.Media.FiveManage.ApiKey)
|
|
end
|