Commit 4a7f1514 authored by Erlend Ydse's avatar Erlend Ydse
Browse files

Fix adding friends and updating profile image and bio

parent a3c0b2ab
Pipeline #117166 failed with stage
in 1 minute and 2 seconds
......@@ -83,7 +83,7 @@ class UserDetail(
return self.update(request, *args, **kwargs)
def patch(self, request, *args, **kwargs):
self.serializer_class = UserPutSerializer
#self.serializer_class = UserPutSerializer
return self.partial_update(request, *args, **kwargs)
......
......@@ -166,7 +166,7 @@ function renderSearchResult(friends) {
a.href = `profile.html?id=${friend.id}`;
const button = divFriendRequest.querySelector("button");
button.addEventListener("click", () => addFriend(friend.id));
button.addEventListener("click", () => addFriend(friend.url));
container.appendChild(cloneFriendRequest);
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment