mirror of
https://github.com/tgdrive/teldrive.git
synced 2024-09-20 16:25:54 +08:00
Updates profile check when no profile pic is set
This commit is contained in:
parent
e17c71d57b
commit
a803c18a2e
|
@ -71,6 +71,9 @@ func (us *UserService) GetProfilePhoto(c *gin.Context) {
|
|||
return err
|
||||
}
|
||||
peer := self.AsInputPeer()
|
||||
if self.Photo == nil {
|
||||
return nil
|
||||
}
|
||||
photo, ok := self.Photo.AsNotEmpty()
|
||||
if !ok {
|
||||
return errors.New("profile not found")
|
||||
|
|
Loading…
Reference in a new issue