changed server to use firstname lastname from esx_identity

This commit is contained in:
erik-sn committed 2020-10-04 10:50:41 -04:00
1 parent e8ea4a8951
commit e3fb16988e
2 files changed
+2 -3

No files matched your search

+1 -2
View File
@@ -90,14 +90,13 @@ end
function getProfileName(identifier, cb)
local defaultProfileName = ''
if Config.twitter.generateProfileNameFromUsers == false then
print('use default')
cb(defaultProfileName)
return
end
-- TODO: make this query configurable
MySQL.Async.fetchAll([[
SELECT CONCAT(first_name, '_', last_name) AS profile_name
SELECT CONCAT(firstname, '_', lastname) AS profile_name
FROM users
WHERE identifier = @identifier LIMIT 1
]],