This commit is contained in:
17
cmd/ev/app.twtxt.go
Normal file
17
cmd/ev/app.twtxt.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"go.sour.is/ev/internal/lg"
|
||||
"go.sour.is/ev/pkg/service"
|
||||
)
|
||||
|
||||
var _ = apps.Register(50, func(ctx context.Context, svc *service.Harness) error {
|
||||
_, span := lg.Span(ctx)
|
||||
defer span.End()
|
||||
|
||||
span.AddEvent("Enable Twtxt")
|
||||
|
||||
return nil
|
||||
})
|
||||
@@ -38,7 +38,7 @@ var _ = apps.Register(50, func(ctx context.Context, svc *service.Harness) error
|
||||
cache.SetDefault(s, true)
|
||||
return false
|
||||
})
|
||||
var withHostnames webfinger.WithHostnames = strings.Fields(env.Default(" ", "sour.is"))
|
||||
var withHostnames webfinger.WithHostnames = strings.Fields(env.Default("WEBFINGER_DOMAINS", "sour.is"))
|
||||
|
||||
wf, err := webfinger.New(ctx, eventstore, withCache, withHostnames)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user