diff --git a/public/css/profile.css b/public/css/profile.css index 54bf4f1..b9e1d3d 100644 --- a/public/css/profile.css +++ b/public/css/profile.css @@ -124,6 +124,10 @@ body { align-self: center; padding: 0; display: flex; + flex-direction: column; +} + +#about { flex-direction: row; } diff --git a/src/database/friends.rs b/src/database/friends.rs index 7e23616..f592675 100644 --- a/src/database/friends.rs +++ b/src/database/friends.rs @@ -84,8 +84,8 @@ impl Database { WHERE EXISTS ( SELECT NULL FROM friends f - WHERE f.follower_id = ? - AND u.user_id = f.followee_id + WHERE u.user_id = f.follower_id + AND f.followee_id = ? ) ", )?; @@ -106,8 +106,8 @@ impl Database { WHERE EXISTS ( SELECT NULL FROM friends f - WHERE u.user_id = f.follower_id - AND f.followee_id = ? + WHERE f.follower_id = ? + AND u.user_id = f.followee_id ) ", )?;