mirror of
https://codeberg.org/tacerus/teddit.git
synced 2024-11-26 17:19:27 +01:00
fix subreddit view when there are no subscriptions
This commit is contained in:
parent
f368b40dda
commit
d72b00cb87
@ -185,11 +185,13 @@ html
|
|||||||
each subreddit in subreddits
|
each subreddit in subreddits
|
||||||
-
|
-
|
||||||
let subbed_to_this_subreddit = false
|
let subbed_to_this_subreddit = false
|
||||||
|
if(user_preferences.subbed_subreddits) {
|
||||||
let subbed = user_preferences.subbed_subreddits
|
let subbed = user_preferences.subbed_subreddits
|
||||||
for(let i = 0; i < subbed.length; i++) {
|
for(let i = 0; i < subbed.length; i++) {
|
||||||
if(subbed[i] === subreddit)
|
if(subbed[i] === subreddit)
|
||||||
subbed_to_this_subreddit = true
|
subbed_to_this_subreddit = true
|
||||||
}
|
}
|
||||||
|
}
|
||||||
li
|
li
|
||||||
if subbed_to_this_subreddit
|
if subbed_to_this_subreddit
|
||||||
a(href="/unsubscribe/" + subreddit + "?b=/r/" + subreddits + "", class="sub-to-subreddit gray", title="subscriptions are saved in your browser's cookies") unsubscribe
|
a(href="/unsubscribe/" + subreddit + "?b=/r/" + subreddits + "", class="sub-to-subreddit gray", title="subscriptions are saved in your browser's cookies") unsubscribe
|
||||||
|
Loading…
Reference in New Issue
Block a user