add replay_url to response if demo is _not_ expired

This commit is contained in:
2021-10-22 21:23:25 +02:00
parent 6bbe6c5732
commit d049f3ea53

View File

@@ -601,7 +601,7 @@ func getMatch(w http.ResponseWriter, r *http.Request) {
Stats: []*utils.StatsResponse{}, 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 mResponse.ReplayURL = tMatch.ReplayURL
} }