server: Add support for users' avatars in GrahpQL
This commit is contained in:
committed by
nitnelave
parent
0e3c5120da
commit
3acc448048
@@ -217,6 +217,10 @@ impl<Handler: BackendHandler + Sync> User<Handler> {
|
||||
&self.user.last_name
|
||||
}
|
||||
|
||||
fn avatar(&self) -> String {
|
||||
(&self.user.avatar).into()
|
||||
}
|
||||
|
||||
fn creation_date(&self) -> chrono::DateTime<chrono::Utc> {
|
||||
self.user.creation_date
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user