appview/strings: replace leftover references to "gist"s #517

merged
opened by harperandrews.org targeting master from [deleted fork]: fix-left-over-gist-references
Changed files
+2 -2
appview
pages
templates
strings
strings
+1 -1
appview/pages/templates/strings/string.html
···
title="Delete string"
hx-delete="/strings/{{ .String.Did }}/{{ .String.Rkey }}/"
hx-swap="none"
-
hx-confirm="Are you sure you want to delete the gist `{{ .String.Filename }}`?"
+
hx-confirm="Are you sure you want to delete the string `{{ .String.Filename }}`?"
>
{{ i "trash-2" "size-4" }}
<span class="hidden md:inline">delete</span>
+1 -1
appview/strings/strings.go
···
}
if user.Did != id.DID.String() {
-
fail("You cannot delete this gist", fmt.Errorf("unauthorized deletion, %s != %s", user.Did, id.DID.String()))
+
fail("You cannot delete this string", fmt.Errorf("unauthorized deletion, %s != %s", user.Did, id.DID.String()))
return
}