Skip to content

Conversation

@MathMan05
Copy link
Contributor

This should fix some APIs to better match how they should work

Comment on lines -109 to +113
if (("bio" in body || "avatar" in body) && req.params.member_id != "@me") {
if (("bio" in body || "avatar" in body) && member_id != req.user_id) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this something we really want? Normally its only nicknames...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Like are you asking if the change is needed or if we want to keep this around?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this changes behavior, normally you cna only patch someone's nickname, not other fields

do we want this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not change behavior, it just corrects the code to check for both ways of modifying your own profile, either by @me or your own id

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants