mirror of https://github.com/velour/catbase.git
Merge pull request #82 from velour/squarify_untappd
beers: make untappd icons square
This commit is contained in:
commit
4c0b8f4fad
|
@ -297,6 +297,9 @@ type checkin struct {
|
||||||
Items []struct {
|
Items []struct {
|
||||||
Photo_id int
|
Photo_id int
|
||||||
Photo struct {
|
Photo struct {
|
||||||
|
Photo_img_sm string
|
||||||
|
Photo_img_md string
|
||||||
|
Photo_img_lg string
|
||||||
Photo_img_og string
|
Photo_img_og string
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -419,7 +422,7 @@ func (p *BeersPlugin) checkUntappd(channel string) {
|
||||||
|
|
||||||
msg2 := ""
|
msg2 := ""
|
||||||
if checkin.Media.Count > 0 {
|
if checkin.Media.Count > 0 {
|
||||||
msg2 = "Here's a photo: " + checkin.Media.Items[0].Photo.Photo_img_og
|
msg2 = "Here's a photo: " + checkin.Media.Items[0].Photo.Photo_img_lg
|
||||||
}
|
}
|
||||||
|
|
||||||
user.lastCheckin = checkin.Checkin_id
|
user.lastCheckin = checkin.Checkin_id
|
||||||
|
|
Loading…
Reference in New Issue