mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-25 09:20:33 +00:00
Fixing a bug with follower view
This commit is contained in:
parent
6577f3bf8d
commit
234d5bd5a2
1 changed files with 6 additions and 1 deletions
|
@ -1723,7 +1723,12 @@ impl Perform for GetFollowedCommunities {
|
||||||
|
|
||||||
let user_id = claims.id;
|
let user_id = claims.id;
|
||||||
|
|
||||||
let communities: Vec<CommunityFollowerView> = CommunityFollowerView::for_user(&conn, user_id).unwrap();
|
let communities: Vec<CommunityFollowerView> = match CommunityFollowerView::for_user(&conn, user_id) {
|
||||||
|
Ok(communities) => communities,
|
||||||
|
Err(_e) => {
|
||||||
|
return self.error("System error, try logging out and back in.");
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
// Return the jwt
|
// Return the jwt
|
||||||
serde_json::to_string(
|
serde_json::to_string(
|
||||||
|
|
Loading…
Reference in a new issue