aboutsummaryrefslogtreecommitdiff
path: root/accept.go
diff options
context:
space:
mode:
authorFChannel0 <77419041+FChannel0@users.noreply.github.com>2021-08-17 12:41:20 -0700
committerGitHub <noreply@github.com>2021-08-17 12:41:20 -0700
commit21917eb2ea72fe40d70c2c991e821aace5430c23 (patch)
tree4dd4122a8661231181ead7c00bdc92c3d498589f /accept.go
parent149f71db2d6e1b704ff2712393da5276a622d4dd (diff)
parentc8e0fb94bac60679ccebfcdec9cefb32674b2eec (diff)
Merge pull request #51 from KushBlazingJudah/development
go fmt and docker configuration
Diffstat (limited to 'accept.go')
-rw-r--r--accept.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/accept.go b/accept.go
index 1263ab8..b357cc4 100644
--- a/accept.go
+++ b/accept.go
@@ -11,7 +11,7 @@ func acceptActivity(header string) bool {
if strings.Contains(header, ";") {
split := strings.Split(header, ";")
accept = accept || activityRegexp.MatchString(split[0])
- accept = accept || strings.Contains(split[len(split)-1], "profile=\"https://www.w3.org/ns/activitystreams\"")
+ accept = accept || strings.Contains(split[len(split)-1], "profile=\"https://www.w3.org/ns/activitystreams\"")
} else {
accept = accept || activityRegexp.MatchString(header)
}