mirror of
https://codeberg.org/tacerus/teddit.git
synced 2024-11-30 04:09:23 +01:00
fix subreddit view when there are no subscriptions
This commit is contained in:
parent
f368b40dda
commit
d72b00cb87
@ -185,10 +185,12 @@ html
|
|||||||
each subreddit in subreddits
|
each subreddit in subreddits
|
||||||
-
|
-
|
||||||
let subbed_to_this_subreddit = false
|
let subbed_to_this_subreddit = false
|
||||||
let subbed = user_preferences.subbed_subreddits
|
if(user_preferences.subbed_subreddits) {
|
||||||
for(let i = 0; i < subbed.length; i++) {
|
let subbed = user_preferences.subbed_subreddits
|
||||||
if(subbed[i] === subreddit)
|
for(let i = 0; i < subbed.length; i++) {
|
||||||
subbed_to_this_subreddit = true
|
if(subbed[i] === subreddit)
|
||||||
|
subbed_to_this_subreddit = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
li
|
li
|
||||||
if subbed_to_this_subreddit
|
if subbed_to_this_subreddit
|
||||||
|
Loading…
Reference in New Issue
Block a user