Pastebin format fix

This commit is contained in:
Igor Timofeev 2019-01-21 21:25:40 +03:00
parent fd035c57c2
commit 303ac0d3f5
2 changed files with 2 additions and 1 deletions

View File

@ -11,6 +11,7 @@ local filesystem = require("Filesystem")
local color = require("Color")
local number = require("Number")
local text = require("Text")
local event = require("Event")
--------------------------------------------------------------------------------

View File

@ -604,7 +604,7 @@ function system.uploadToPastebin(path)
api_option = "paste",
api_dev_key = "fd92bd40a84c127eeb6804b146793c97",
api_paste_expire_date = "N",
api_paste_format = filesystem.extension(path) == ".lua" and "lua",
api_paste_format = filesystem.extension(path) == ".lua" and "lua" or "text",
api_paste_name = container.input.text,
api_paste_code = filesystem.read(path),
}))