commit 3e581b063177afc386b9afe8ba2b98b7358cba5e
parent 2726d33a91d6a24c9f4f6039caf5c534b52c238b
Author: Leah (ctucx) <git@ctu.cx>
Date: Thu, 22 Sep 2022 09:51:06 +0200
parent 2726d33a91d6a24c9f4f6039caf5c534b52c238b
Author: Leah (ctucx) <git@ctu.cx>
Date: Thu, 22 Sep 2022 09:51:06 +0200
pkgs/gotosocial: add patch for footer-template
2 files changed, 49 insertions(+), 0 deletions(-)
A
|
45
+++++++++++++++++++++++++++++++++++++++++++++
diff --git a/pkgs/gotosocial/0001-footer-remove-contact-addresses-add-federation-count.patch b/pkgs/gotosocial/0001-footer-remove-contact-addresses-add-federation-count.patch @@ -0,0 +1,45 @@ +From 3023edcb98d6b52084c728efa739f6a537dc3a34 Mon Sep 17 00:00:00 2001 +From: "Leah (ctucx)" <git@ctu.cx> +Date: Tue, 20 Sep 2022 14:40:16 +0200 +Subject: [PATCH] footer: remove contact addresses, add federation count + +--- + web/template/footer.tmpl | 13 ++----------- + 1 file changed, 2 insertions(+), 11 deletions(-) + +diff --git a/web/template/footer.tmpl b/web/template/footer.tmpl +index 11e14ba4..be65c3cb 100644 +--- a/web/template/footer.tmpl ++++ b/web/template/footer.tmpl +@@ -2,20 +2,11 @@ + </div> + <footer> + <div id="version"> ++ federating with <span class="count">{{.instance.Stats.domain_count}}</span> other instances<br> + <a name="Source code" href="https://github.com/superseriousbusiness/gotosocial"> + GoToSocial <span class="accent">{{.instance.Version}}</span> + </a> + </div> +- {{ if .instance.ContactAccount }} +- <div id="contact"> +- Contact: <a href="{{.instance.ContactAccount.URL}}" class="nounderline">{{.instance.ContactAccount.Username}}</a><br> +- </div> +- {{ end }} +- {{ if .instance.Email }} +- <div id="email"> +- Email: <a href="mailto:{{.instance.Email}}" class="nounderline">{{.instance.Email}}</a><br> +- </div> +- {{ end }} + </footer> + </div> + {{ if .javascript }} +@@ -24,4 +15,4 @@ + {{ end }} + {{ end }} + </body> +-</html> +\ No newline at end of file ++</html> +-- +2.36.2 +
diff --git a/pkgs/gotosocial/default.nix b/pkgs/gotosocial/default.nix @@ -38,6 +38,10 @@ let in buildGo118Module rec { inherit pname version src; + patches = [ + ./0001-footer-remove-contact-addresses-add-federation-count.patch + ]; + ldflags = ["-s" "-w" "-extldflags '-static'" "-X 'main.Commit=${version}'" "-X 'main.Version=${version}'"]; tags = ["netgo" "osusergo" "static_build"];