allow archived subreddits too

This commit is contained in:
Andre Medeiros 2022-07-12 14:45:19 -04:00
parent e0f194a7d1
commit 9d0c5fb419

View file

@ -174,7 +174,7 @@ func NewSubredditResponse(val *fastjson.Value) interface{} {
sr.Quarantined = data.GetBool("quarantine")
sr_type := string(data.GetStringBytes("subreddit_type"))
sr.Public = sr_type == "public" || sr_type == "restricted"
sr.Public = sr_type == "public" || sr_type == "restricted" || sr_type == "archived"
return sr
}