aboutsummaryrefslogtreecommitdiff
path: root/api/social/friend_accept.py
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-03-27 14:53:47 +0100
committerlonkaars <l.leblansch@gmail.com>2021-03-27 14:53:47 +0100
commitac7aff3de98cbc26dc0826f297b504ccb0011295 (patch)
tree1e581b577270dab1ff25351830a396e049fcbc10 /api/social/friend_accept.py
parent1117131e8efc528e5d6dc225e9346e2cb2b459f2 (diff)
friend/accept working again
Diffstat (limited to 'api/social/friend_accept.py')
-rw-r--r--api/social/friend_accept.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/social/friend_accept.py b/api/social/friend_accept.py
index cd11159..4f1f847 100644
--- a/api/social/friend_accept.py
+++ b/api/social/friend_accept.py
@@ -10,7 +10,7 @@ accept = Blueprint('accept', __name__)
@two_person_endpoint
def route(user_1_id, user_2_id):
cursor.execute("update social set type = \"friendship\" where user_1_id = ? and user_2_id = ?",
- [user_1_id, user_2_id])
+ [user_2_id, user_1_id])
connection.commit()
io.emit("changedRelation", { "id": user_2_id }, room="user-"+user_1_id)