This commit is contained in:
mr
2026-02-02 10:00:44 +01:00
parent 365d62a64e
commit 6b9e21b929
4 changed files with 5 additions and 3 deletions

View File

@@ -234,7 +234,7 @@ func (o *OAuthController) extractOrigin(request *http.Request) (string, string,
}
p := pp.Data[0].(*model.Peer)
publicKey = p.PublicKey
origin = p.Url
origin = p.APIUrl
if origin != "" { // is external
if p.Relation == peer.SELF {
external = false