A lexicon-driven AppView for ATProto. happyview.dev
backfill firehose jetstream atproto appview oauth lexicon
8
fork

Configure Feed

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

fix: display the correct version on the about page

Trezy 1a2085a9 73a66c70

+10 -1
+2
.github/workflows/docker.yml
··· 65 65 context: . 66 66 platforms: ${{ matrix.platform }} 67 67 labels: ${{ steps.meta.outputs.labels }} 68 + build-args: | 69 + HAPPYVIEW_VERSION=${{ github.event.release.tag_name }} 68 70 cache-from: type=gha,scope=build-${{ matrix.platform }} 69 71 cache-to: type=gha,scope=build-${{ matrix.platform }},mode=max,ignore-error=true 70 72 outputs: type=image,"name=${{ env.GHCR_IMAGE }},${{ env.ATCR_IMAGE }}",push-by-digest=true,name-canonical=true,push=true
+2
Dockerfile
··· 19 19 # Build application code 20 20 COPY src/ src/ 21 21 COPY migrations/ migrations/ 22 + ARG HAPPYVIEW_VERSION 23 + ENV HAPPYVIEW_VERSION=$HAPPYVIEW_VERSION 22 24 RUN cargo build --release 23 25 24 26 FROM debian:bookworm-slim
+6 -1
src/server.rs
··· 120 120 .or_else(|| state.config.logo_uri.clone()) 121 121 }; 122 122 123 + let version: &str = match option_env!("HAPPYVIEW_VERSION") { 124 + Some(v) if !v.is_empty() => v.trim_start_matches('v'), 125 + _ => env!("CARGO_PKG_VERSION"), 126 + }; 127 + 123 128 Json(serde_json::json!({ 124 129 "public_url": state.config.public_url, 125 - "version": env!("CARGO_PKG_VERSION"), 130 + "version": version, 126 131 "database_backend": format!("{:?}", state.config.database_backend).to_lowercase(), 127 132 "jetstream_url": state.config.jetstream_url, 128 133 "relay_url": state.config.relay_url,