diff --git a/Cargo.toml b/Cargo.toml index 45b5d57..5c52375 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ name = "libreddit" description = " Alternative private front-end to Reddit" license = "AGPL-3.0" repository = "https://github.com/spikecodes/libreddit" -version = "0.9.0" +version = "0.10.0" authors = ["spikecodes <19519553+spikecodes@users.noreply.github.com>"] edition = "2018" diff --git a/src/subreddit.rs b/src/subreddit.rs index c8763e5..c26abdc 100644 --- a/src/subreddit.rs +++ b/src/subreddit.rs @@ -35,18 +35,19 @@ pub async fn community(req: Request
) -> ResultSubscribed Subreddits
+Subscribed Feeds
{% for sub in prefs.subscriptions %}- r/{{ post.community }} + {% let community -%} + {% if post.community.starts_with("u_") -%} + {% let community = format!("u/{}", &post.community[2..]) -%} + {% else -%} + {% let community = format!("r/{}", post.community) -%} + {% endif -%} + {{ community }} • u/{{ post.author.name }} •