An engagement based washing machine that spins you round and round!
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fixed undefined profile

Brooke 2ce91a17 18d6adcc

+10 -2
+4 -2
Dockerfile
··· 8 8 9 9 # Copy go mod files 10 10 COPY go.mod go.sum ./ 11 - RUN go mod download 11 + RUN --mount=type=cache,target=/go/pkg/mod go mod download 12 12 13 13 # Copy source code 14 14 COPY . . ··· 18 18 ARG TARGETARCH 19 19 20 20 # Build the binary 21 - RUN CGO_ENABLED=1 GOOS=${TARGETOS} GOARCH=${TARGETARCH} \ 21 + RUN --mount=type=cache,target=/go/pkg/mod \ 22 + --mount=type=cache,target=/root/.cache/go-build \ 23 + CGO_ENABLED=1 GOOS=${TARGETOS} GOARCH=${TARGETARCH} \ 22 24 go build -ldflags="-w -s" -o brooke-spin ./cmd/brooke-spin 23 25 24 26 # Runtime stage
+6
cmd/brooke-spin/main.go
··· 174 174 return fmt.Errorf("failed to rotate image: %w", err) 175 175 } 176 176 177 + // Fetch current profile to get latest details before updating 178 + profile, err := blueskyClient.GetProfile() 179 + if err != nil { 180 + return fmt.Errorf("failed to get profile: %w", err) 181 + } 182 + 177 183 // Upload new avatar 178 184 log.Println("Uploading rotated avatar...") 179 185 blobRef, err := blueskyClient.UploadBlob(rotatedData, image.GetMimeType(format))