From fc1414f3264d1d701acc5aa12661d2e6984464d7 Mon Sep 17 00:00:00 2001 From: luk3yx Date: Wed, 7 Oct 2020 10:01:08 +1300 Subject: [PATCH] Backport "source" to V2 API --- lurkcoin/api/v2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lurkcoin/api/v2.go b/lurkcoin/api/v2.go index 4b3bd7c..37dbb97 100644 --- a/lurkcoin/api/v2.go +++ b/lurkcoin/api/v2.go @@ -195,7 +195,7 @@ func addV2API(router *httprouter.Router, db lurkcoin.Database, return nil, errors.New("ERR_SERVERNOTFOUND") } - _, err = r.Server.Pay("", target, targetServer, + _, err = r.Server.Pay(f.Get("source"), target, targetServer, amount, isYes(f.Get("local_currency")), true) if err != nil { return nil, err