Skip to content

Commit

Permalink
use permalink instead of URL
Browse files Browse the repository at this point in the history
  • Loading branch information
rweichler committed Jan 27, 2017
1 parent e60b19c commit f820705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function main()
local posts = listing.data.children

for i,v in ipairs(posts) do
process_post(v.data.title, v.data.url, v.data.created)
process_post(v.data.title, 'http://reddit.com'..v.data.permalink, v.data.created)
end

local f = io.open(output_filename, 'w')
Expand Down

0 comments on commit f820705

Please sign in to comment.