GH-Feed: Fix

This commit is contained in:
Andreas Bielawski 2016-08-01 19:56:33 +02:00
parent 293e5ba589
commit 6db1752670

View File

@ -271,6 +271,7 @@ function gh_feed:cron(self_plz)
local last_date = redis:get(gh_feed_get_base_redis(repo, "date"))
local was_not_modified, data, last_etag = gh_feed_check_modified(repo, cur_etag, last_date)
if not was_not_modified then
if not data then return end
-- When there are new commits
local last_commit = redis:get(gh_feed_get_base_redis(repo, "last_commit"))
text = ''