ahmdrz / goinsta

Unofficial Instagram API written in Golang
MIT License
895 stars 247 forks source link

added item.Comment() function to fix #293 #299

Closed zeknox closed 4 years ago

zeknox commented 4 years ago

item.Comments.Add() would fail under conditions where Comments was nil and cause a panic and exit. Moved item.Comments.Add() to the function item.Comment() in an attempt to address this panic condition.

hmsta commented 4 years ago

I can confirm that this works

ahmdrz commented 4 years ago

Thank you.