Don't include user UUID in public API endpoint
This commit is contained in:
parent
68984cd858
commit
fa2d87ef18
1
app.js
1
app.js
@ -451,6 +451,7 @@ app.get('/api/channel/:name', async (req, res) => {
|
||||
if (!data) return res.jsonp({ error: 'No such channel!' })
|
||||
let links = await db.all('SELECT * FROM link WHERE uuid = ?', data.user_uuid)
|
||||
|
||||
delete data.user_uuid
|
||||
data.live = data.live_at != null
|
||||
data.live_at = new Date(parseInt(data.live_at))
|
||||
data.last_stream = new Date(parseInt(data.last_stream))
|
||||
|
Reference in New Issue
Block a user