Use fill_links once instead of per comment

This commit is contained in:
Omar Roth 2018-04-05 20:06:22 -05:00
parent 815aeeb29c
commit e2b5b7793a
2 changed files with 4 additions and 5 deletions

View file

@ -296,6 +296,7 @@ get "/watch" do |env|
reddit_comments, reddit_thread = get_reddit_comments(id, reddit_client, headers)
reddit_html = template_comments(reddit_comments)
reddit_html = fill_links(reddit_html, "https", "www.reddit.com")
reddit_html = add_alt_links(reddit_html)
rescue ex
reddit_thread = nil