mirror of
https://github.com/tgdrive/teldrive.git
synced 2025-02-24 15:05:41 +08:00
Merge pull request #21 from joseavilasg09/issue/check-profile-pic
Issue with empty profile pic
This commit is contained in:
commit
fff8849f2f
1 changed files with 3 additions and 0 deletions
|
@ -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