mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-21 19:37:41 +00:00
allow archived subreddits too
This commit is contained in:
parent
e0f194a7d1
commit
9d0c5fb419
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue