mirror of
https://gitlab.com/SukkaW/ruleset.skk.moe.git
synced 2026-04-19 02:04:26 +00:00
17 lines
364 B
JavaScript
17 lines
364 B
JavaScript
/* global $response, $done */
|
|
|
|
let body = $response.body;
|
|
body = JSON.parse(body);
|
|
if (body?.response) {
|
|
body.response = body.response || {};
|
|
body.response.user = body.response.user || {};
|
|
body.response.user.is_premium = true;
|
|
}
|
|
if (body?.user) {
|
|
body.user = body.user || {};
|
|
body.user.is_premium = true;
|
|
}
|
|
body = JSON.stringify(body);
|
|
|
|
$done({ body });
|