Mirror of @tangled.org/core. Running on a Raspberry Pi Zero 2 (Please be gentle).
0
fork

Configure Feed

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

appview: allow spindle registration to reannounce

Signed-off-by: oppiliappan <me@oppi.li>

+10 -1
+9
appview/spindles/spindles.go
··· 112 112 return 113 113 } 114 114 115 + ex, _ := client.RepoGetRecord(r.Context(), "", tangled.SpindleNSID, user.Did, instance) 116 + var exCid *string 117 + if ex != nil { 118 + exCid = ex.Cid 119 + } 120 + 121 + // re-announce by registering under same rkey 115 122 _, err = client.RepoPutRecord(r.Context(), &comatproto.RepoPutRecord_Input{ 116 123 Collection: tangled.SpindleNSID, 117 124 Repo: user.Did, ··· 128 121 CreatedAt: time.Now().Format(time.RFC3339), 129 122 }, 130 123 }, 124 + SwapRecord: exCid, 131 125 }) 126 + 132 127 if err != nil { 133 128 l.Error("failed to put record", "err", err) 134 129 fail()
+1 -1
nix/vm.nix
··· 21 21 g = config.services.tangled-knot.gitUser; 22 22 in [ 23 23 "d /var/lib/knot 0770 ${u} ${g} - -" # Create the directory first 24 - "f+ /var/lib/knot/secret 0660 ${u} ${g} - KNOT_SERVER_SECRET=2650ecafdce279b09865fb1923051156eb773ee7485061b2e766086f07dbd85a" 24 + "f+ /var/lib/knot/secret 0660 ${u} ${g} - KNOT_SERVER_SECRET=7387221d57e64499b179a9dff19c5f1abf436470e2976d3585badddad5282970" 25 25 ]; 26 26 services.tangled-knot = { 27 27 enable = true;