From d049f3ea5361e03ad89c6462072822da9288f539 Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Fri, 22 Oct 2021 21:23:25 +0200 Subject: [PATCH] add replay_url to response if demo is _not_ expired --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 4132d79..0247a53 100644 --- a/main.go +++ b/main.go @@ -601,7 +601,7 @@ func getMatch(w http.ResponseWriter, r *http.Request) { Stats: []*utils.StatsResponse{}, } - if tMatch.Date.Before(time.Now().AddDate(0, 0, -30)) { + if tMatch.Date.After(time.Now().AddDate(0, 0, -30)) { mResponse.ReplayURL = tMatch.ReplayURL }