commit 1c250a87517922d4ec41fa32cc459288bc5d8db7
parent c8878a88cbeaa5bb5dd358cce9f788036feed82a
Author: Leah (ctucx) <git@ctu.cx>
Date: Wed, 5 Oct 2022 13:09:51 +0200
parent c8878a88cbeaa5bb5dd358cce9f788036feed82a
Author: Leah (ctucx) <git@ctu.cx>
Date: Wed, 5 Oct 2022 13:09:51 +0200
pkgs/gotosocial: add patch to hide public-posts on web-view for private profile
2 files changed, 32 insertions(+), 0 deletions(-)
A
|
31
+++++++++++++++++++++++++++++++
diff --git a/pkgs/gotosocial/0003-Dont-show-public-toots-for-private-profile.patch b/pkgs/gotosocial/0003-Dont-show-public-toots-for-private-profile.patch @@ -0,0 +1,31 @@ +From 83bc84f0c9504b922203588e10c683cacffae870 Mon Sep 17 00:00:00 2001 +From: "Leah (ctucx)" <git@ctu.cx> +Date: Wed, 5 Oct 2022 12:35:21 +0200 +Subject: [PATCH] Dont show public toots for private-profile + +--- + web/template/profile.tmpl | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/web/template/profile.tmpl b/web/template/profile.tmpl +index 145ff95f..94ce02f9 100644 +--- a/web/template/profile.tmpl ++++ b/web/template/profile.tmpl +@@ -27,6 +27,7 @@ + <div class="entry">Posted <b>{{.account.StatusesCount}}</b></div> + </div> + </div> ++ {{ if ne .account.Username "leah_priv" }} + <h2 id="recent">Latest public toots</h2> + {{ if not .statuses }} + <div data-nosnippet class="nothinghere">Nothing here!</div> +@@ -47,5 +48,6 @@ + <a href="{{ .statuses_next }}" class="next">Show older</a> + {{ end }} + </div> ++ {{ end }} + </main> + {{ template "footer.tmpl" .}} +-- +2.36.2 +
diff --git a/pkgs/gotosocial/default.nix b/pkgs/gotosocial/default.nix @@ -41,6 +41,7 @@ in buildGo118Module rec { patches = [ ./0001-footer-remove-contact-addresses-add-federation-count.patch ./0002-Armadillo-logo.patch + ./0003-Dont-show-public-toots-for-private-profile.patch ]; ldflags = ["-s" "-w" "-extldflags '-static'" "-X 'main.Commit=${version}'" "-X 'main.Version=${version}'"];