This commit is contained in:
eyedeekay
2025-04-21 15:59:10 -04:00
parent e6d170f16f
commit 3c0c74cfb1
2 changed files with 20 additions and 8 deletions

View File

@ -3,11 +3,24 @@ fmt:
@echo "Running gofumpt..." @echo "Running gofumpt..."
find . -name '*.go' -exec gofumpt -w -s -extra {} \; find . -name '*.go' -exec gofumpt -w -s -extra {} \;
migrate: CGO_ENABLED=0
go build -o migrate ./cmd/migrate
unmigrate: all: bin migrate unmigrate forkfix orgfix
go build -o unmigrate ./cmd/unmigrate
forkfix: bin:
go build -o forkfix ./cmd/forkfix mkdir -p ./bin
migrate: bin
go build --tags=netgo,osusergo -o ./bin/migrate ./cmd/migrate
unmigrate: bin
go build --tags=netgo,osusergo -o ./bin/unmigrate ./cmd/unmigrate
forkfix: bin
go build --tags=netgo,osusergo -o ./bin/forkfix ./cmd/forkfix
orgfix: bin
go build --tags=netgo,osusergo -o ./bin/orgfix ./cmd/orgfix
clean:
rm -f ./bin/migrate ./bin/unmigrate ./bin/forkfix ./bin/orgfix

View File

@ -29,8 +29,7 @@ func ExtractUserMentions(text string) []string {
} }
// Ignore everything we found and return nothing // Ignore everything we found and return nothing
return []string{} return []string{""}
//return result
} }
// NormalizeMentions replaces all @mentions in text with their normalized versions // NormalizeMentions replaces all @mentions in text with their normalized versions