What??
This commit is contained in:
parent
7cd412ec64
commit
7d12e96979
|
@ -547,7 +547,8 @@ local function is_image_link (str)
|
|||
if type(str) ~= 'string' then return false end
|
||||
if not str:match '^%a+://.+$' then return false end
|
||||
local headers = internet.download_headers(str)
|
||||
return headers['content-type']:match '^image/%a+$'
|
||||
print(headers)
|
||||
return type(headers) == 'table' and headers['content-type']:match '^image/%a+$'
|
||||
end
|
||||
|
||||
function memes.generate_for_message (user, message)
|
||||
|
|
Loading…
Reference in New Issue
Block a user