summaryrefslogtreecommitdiff
path: root/internal/message/processor.go
diff options
context:
space:
mode:
authorLibravatar Tobi Smethurst <31960611+tsmethurst@users.noreply.github.com>2021-05-09 20:34:27 +0200
committerLibravatar GitHub <noreply@github.com>2021-05-09 20:34:27 +0200
commitdc338dc881ead40723f0540aac7fe894f58b174d (patch)
treea000a065ffe219683f68520dd66b12aa1506a9fa /internal/message/processor.go
parentFix token sweep (#19) (diff)
downloadgotosocial-dc338dc881ead40723f0540aac7fe894f58b174d.tar.xz
Webfinger + Small fixes (#20)
Diffstat (limited to 'internal/message/processor.go')
-rw-r--r--internal/message/processor.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/message/processor.go b/internal/message/processor.go
index 0c0334e20..d150d56e6 100644
--- a/internal/message/processor.go
+++ b/internal/message/processor.go
@@ -108,6 +108,9 @@ type Processor interface {
// GetFediUser handles the getting of a fedi/activitypub representation of a user/account, performing appropriate authentication
// before returning a JSON serializable interface to the caller.
GetFediUser(requestedUsername string, request *http.Request) (interface{}, ErrorWithCode)
+
+ // GetWebfingerAccount handles the GET for a webfinger resource. Most commonly, it will be used for returning account lookups.
+ GetWebfingerAccount(requestedUsername string, request *http.Request) (*apimodel.WebfingerAccountResponse, ErrorWithCode)
}
// processor just implements the Processor interface