Skip to content

Add profile actions to response #78

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ Username or UUID -> Everything<br>
},
"legacy": <true|null>,
"demo": <true|null>,
"profile_actions": [
<zero or more of "FORCED_NAME_CHANGE" or "USING_BANNED_SKIN">
],
"created_at": <date|null>
}
```
Expand Down Expand Up @@ -77,6 +80,9 @@ UUID -> Profile + Textures<br>
"name": "textures",
"value": <base64> // Then decode the base64 string and make http requests to fetch the textures...
}
],
"profile_actions": [
<zero or more of "FORCED_NAME_CHANGE" or "USING_BANNED_SKIN">
]
}
```
Expand Down
1 change: 1 addition & 0 deletions src/api.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export user = (id) ->
raw: {value: texturesRaw.value, signature: texturesRaw.signature} unless texturesRaw.isEmpty()
legacy: true if profile.legacy
demo: true if profile.demo
profile_actions: profile.profileActions ? []
created_at: date
await USERS.put(id, JSON.stringify(response), {expirationTtl: 3600})
respond(response, json: true)
Expand Down