Rename cavage singing func, add import for server
All checks were successful
/ docker (push) Successful in 4m1s

This commit is contained in:
Melody Becker 2025-04-15 14:51:07 +02:00
parent 5e13817563
commit 08f6de0bd7
Signed by: mstar
SSH key fingerprint: SHA256:9VAo09aaVNTWKzPW7Hq2LW+ox9OdwmTSHRoD4mlz1yI
39 changed files with 2035 additions and 364 deletions

16
web/debug/remoteServer.go Normal file
View file

@ -0,0 +1,16 @@
package webdebug
import (
"net/http"
"github.com/rs/zerolog/hlog"
"git.mstar.dev/mstar/linstrom/activitypub"
)
func importServerInfo(w http.ResponseWriter, r *http.Request) {
target := r.FormValue("target")
if _, err := activitypub.ImportRemoteServer(target); err != nil {
hlog.FromRequest(r).Error().Err(err).Msg("Failed to import")
}
}