+94
appview/middleware/middleware.go
+94
appview/middleware/middleware.go
···
+2
-1
appview/state/follow.go
+2
-1
appview/state/follow.go
······
+7
-92
appview/state/middleware.go
+7
-92
appview/state/middleware.go
···············
+3
-2
appview/state/pull.go
+3
-2
appview/state/pull.go
······atResp, err := comatproto.RepoPutRecord(r.Context(), client, &comatproto.RepoPutRecord_Input{···
+5
-4
appview/state/repo.go
+5
-4
appview/state/repo.go
············resp, err := comatproto.RepoPutRecord(r.Context(), client, &comatproto.RepoPutRecord_Input{···
+25
-22
appview/state/router.go
+25
-22
appview/state/router.go
··················r.With(RepoPermissionMiddleware(s, "repo:owner")).Route("/description", func(r chi.Router) {············
+106
-80
appview/state/settings.go
appview/state/settings/settings.go
+106
-80
appview/state/settings.go
appview/state/settings/settings.go
············-func (s *State) sendVerificationEmail(w http.ResponseWriter, did, emailAddr, code string, errorContext string) error {+func (s *Settings) sendVerificationEmail(w http.ResponseWriter, did, emailAddr, code string, errorContext string) error {-s.pages.Notice(w, "settings-emails-error", fmt.Sprintf("Unable to send verification email at this moment, try again later. %s", errorContext))+s.Pages.Notice(w, "settings-emails-error", fmt.Sprintf("Unable to send verification email at this moment, try again later. %s", errorContext))-s.pages.Notice(w, "settings-emails-error", "Unable to add email at this moment, try again later.")+s.Pages.Notice(w, "settings-emails-error", "Unable to add email at this moment, try again later.")-s.pages.Notice(w, "settings-emails-error", "This email is already added but not verified. Check your inbox for the verification link.")+s.Pages.Notice(w, "settings-emails-error", "This email is already added but not verified. Check your inbox for the verification link.")-s.pages.Notice(w, "settings-emails-error", "Unable to add email at this moment, try again later.")+s.Pages.Notice(w, "settings-emails-error", "Unable to add email at this moment, try again later.")···-s.pages.Notice(w, "settings-emails-error", "Unable to add email at this moment, try again later.")+s.Pages.Notice(w, "settings-emails-error", "Unable to add email at this moment, try again later.")···-s.pages.Notice(w, "settings-emails-error", "Unable to add email at this moment, try again later.")+s.Pages.Notice(w, "settings-emails-error", "Unable to add email at this moment, try again later.")-s.pages.Notice(w, "settings-emails-success", "Click the link in the email we sent you to verify your email address.")+s.Pages.Notice(w, "settings-emails-success", "Click the link in the email we sent you to verify your email address.")-s.pages.Notice(w, "settings-emails-error", "Unable to delete email at this moment, try again later.")+s.Pages.Notice(w, "settings-emails-error", "Unable to delete email at this moment, try again later.")-s.pages.Notice(w, "settings-emails-error", "Unable to delete email at this moment, try again later.")+s.Pages.Notice(w, "settings-emails-error", "Unable to delete email at this moment, try again later.")-s.pages.Notice(w, "settings-emails-error", "Unable to delete email at this moment, try again later.")+s.Pages.Notice(w, "settings-emails-error", "Unable to delete email at this moment, try again later.")···return fmt.Sprintf("%s/settings/emails/verify?did=%s&email=%s&code=%s", appUrl, url.QueryEscape(did), url.QueryEscape(email), url.QueryEscape(code))···-s.pages.Notice(w, "settings-emails-error", "Invalid verification code. Please request a new verification email.")+s.Pages.Notice(w, "settings-emails-error", "Invalid verification code. Please request a new verification email.")-s.pages.Notice(w, "settings-emails-error", "Error updating email verification status. Please try again later.")+s.Pages.Notice(w, "settings-emails-error", "Error updating email verification status. Please try again later.")-s.pages.Notice(w, "settings-emails-error", "Unable to resend verification email at this moment, try again later.")+s.Pages.Notice(w, "settings-emails-error", "Unable to resend verification email at this moment, try again later.")···-s.pages.Notice(w, "settings-emails-error", fmt.Sprintf("Please wait %d minutes before requesting another verification email.", int(waitTime.Minutes()+1)))+s.Pages.Notice(w, "settings-emails-error", fmt.Sprintf("Please wait %d minutes before requesting another verification email.", int(waitTime.Minutes()+1)))···-s.pages.Notice(w, "settings-emails-error", "Unable to resend verification email at this moment, try again later.")+s.Pages.Notice(w, "settings-emails-error", "Unable to resend verification email at this moment, try again later.")···-s.pages.Notice(w, "settings-emails-error", "Unable to resend verification email at this moment, try again later.")+s.Pages.Notice(w, "settings-emails-error", "Unable to resend verification email at this moment, try again later.")···-s.pages.Notice(w, "settings-emails-error", "Unable to resend verification email at this moment, try again later.")+s.Pages.Notice(w, "settings-emails-error", "Unable to resend verification email at this moment, try again later.")-s.pages.Notice(w, "settings-emails-success", "Verification email resent. Click the link in the email we sent you to verify your email address.")+s.Pages.Notice(w, "settings-emails-success", "Verification email resent. Click the link in the email we sent you to verify your email address.")-s.pages.Notice(w, "settings-emails-error", "Error setting primary email. Please try again later.")+s.Pages.Notice(w, "settings-emails-error", "Error setting primary email. Please try again later.")-s.pages.Notice(w, "settings-keys", "That doesn't look like a valid public key. Make sure it's a <strong>public</strong> key.")+s.Pages.Notice(w, "settings-keys", "That doesn't look like a valid public key. Make sure it's a <strong>public</strong> key.")-s.pages.Notice(w, "settings-keys", "Unable to add public key at this moment, try again later.")+s.Pages.Notice(w, "settings-keys", "Unable to add public key at this moment, try again later.")······-s.pages.Notice(w, "settings-keys", "Unable to add public key at this moment, try again later.")+s.Pages.Notice(w, "settings-keys", "Unable to add public key at this moment, try again later.")······
+2
-1
appview/state/star.go
+2
-1
appview/state/star.go
······
+4
-4
appview/state/state.go
+4
-4
appview/state/state.go
·········