Signed-off-by: brookjeynes me@brookjeynes.dev
REVERTED
go.mod
REVERTED
go.mod
···············
···············
REVERTED
go.sum
REVERTED
go.sum
···-github.com/aymanbagabas/go-osc52/v2 v2.0.1/go.mod h1:uYgXzlJ7ZpABp8OJ+exZzJJhRNQ2ASbcXHWsFqH8hp8=···-github.com/charmbracelet/colorprofile v0.2.3-0.20250311203215-f60798e515dc h1:4pZI35227imm7yK2bGPcfpFEmuY1gc2YSTShr4iJBfs=-github.com/charmbracelet/colorprofile v0.2.3-0.20250311203215-f60798e515dc/go.mod h1:X4/0JoqgTIPSFcRA/P6INZzIuyqdFY5rm8tb41s9okk=-github.com/charmbracelet/lipgloss v1.1.0/go.mod h1:/6Q8FR2o+kj8rz4Dq0zQc3vYf7X+B0binUUBwA0aL30=-github.com/charmbracelet/x/cellbuf v0.0.13-0.20250311204145-2c3ea96c31dd h1:vy0GVL4jeHEwG5YOXDmi86oYw2yuYUGqz6a8sLwg0X8=-github.com/charmbracelet/x/cellbuf v0.0.13-0.20250311204145-2c3ea96c31dd/go.mod h1:xe0nKWGd3eJgtqZRaN9RjMtK7xUYchjzPr7q6kcvCCs=github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=······-github.com/lucasb-eyer/go-colorful v1.2.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0=······github.com/whyrusleeping/cbor v0.0.0-20171005072247-63513f603b11/go.mod h1:Wlo/SzPmxVp6vXpGt/zaXhHH0fn4IxgqZc82aKg6bpQ=github.com/whyrusleeping/cbor-gen v0.2.1-0.20241030202151-b7a6831be65e h1:28X54ciEwwUxyHn9yrZfl5ojgF4CBNLWX7LR0rvBkf4=github.com/whyrusleeping/cbor-gen v0.2.1-0.20241030202151-b7a6831be65e/go.mod h1:pM99HXyEbSQHcosHc0iW7YFmwnscr+t9Te4ibko05so=-github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e h1:JVG44RsyaB9T2KIHavMF/ppJZNG9ZpyihvCd0w101no=-github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e/go.mod h1:RbqR21r5mrJuqunuUZ/Dhy/avygyECGrLceyNeo4LiM=
······github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=············github.com/whyrusleeping/cbor v0.0.0-20171005072247-63513f603b11/go.mod h1:Wlo/SzPmxVp6vXpGt/zaXhHH0fn4IxgqZc82aKg6bpQ=github.com/whyrusleeping/cbor-gen v0.2.1-0.20241030202151-b7a6831be65e h1:28X54ciEwwUxyHn9yrZfl5ojgF4CBNLWX7LR0rvBkf4=github.com/whyrusleeping/cbor-gen v0.2.1-0.20241030202151-b7a6831be65e/go.mod h1:pM99HXyEbSQHcosHc0iW7YFmwnscr+t9Te4ibko05so=
REVERTED
internal/server/log/log.go
REVERTED
internal/server/log/log.go
······
······
REVERTED
internal/db/db.go
REVERTED
internal/db/db.go
···············
···············
REVERTED
internal/server/handlers/study-session.go
REVERTED
internal/server/handlers/study-session.go
············htmx.HxError(w, http.StatusInternalServerError, "Failed to get global study session feed, try again later.")htmx.HxError(w, http.StatusInternalServerError, "Failed to get global study session feed, try again later.")htmx.HxError(w, http.StatusInternalServerError, "Failed to get global study session feed, try again later.")htmx.HxError(w, http.StatusInternalServerError, "Failed to get global study session feed, try again later.")···feed, err = ApplyPendingChanges(h, w, r, feed, PendingStudySessionCreation, PendingStudySessionUpdates, PendingStudySessionDeletion)······htmx.HxError(w, http.StatusInternalServerError, "Failed to update study session, try again later.")htmx.HxError(w, http.StatusUnauthorized, "You do not have permissions to edit this study session.")·········htmx.HxError(w, http.StatusBadRequest, "Failed to update study session, ensure all data is valid.")···htmx.HxError(w, http.StatusBadRequest, "Study session description cannot be more than 256 characters.")···htmx.HxError(w, http.StatusInternalServerError, "Failed to update study session, try again later.")···············htmx.HxError(w, http.StatusBadRequest, "Failed to update study session, ensure all data is valid.")···htmx.HxError(w, http.StatusBadRequest, "Study session description cannot be more than 256 characters.")···htmx.HxError(w, http.StatusInternalServerError, "Failed to create study session, try again later.")···Set("date_is_today", newStudySession.Date.Truncate(24*time.Hour).Equal(time.Now().UTC().In(loc).Truncate(24*time.Hour))),·········htmx.HxError(w, http.StatusInternalServerError, "Failed to delete study session, try again later.")···htmx.HxError(w, http.StatusInternalServerError, "Failed to delete study session, try again later.")·········htmx.HxError(w, http.StatusInternalServerError, "Failed to retrieve study session, try again later.")htmx.HxError(w, http.StatusInternalServerError, "Failed to retrieve bsky profile, try again later.")·········commentFeed, err := db.GetCommentsForSession(h.Db, studySessionUri.String(), pageSize+1, int(offset))···
············htmx.HxError(w, http.StatusInternalServerError, "Failed to get global study session feed, try again later.")htmx.HxError(w, http.StatusInternalServerError, "Failed to get global study session feed, try again later.")htmx.HxError(w, http.StatusInternalServerError, "Failed to get global study session feed, try again later.")htmx.HxError(w, http.StatusInternalServerError, "Failed to get global study session feed, try again later.")···feed, err = ApplyPendingChanges(h, w, r, feed, PendingStudySessionCreation, PendingStudySessionUpdates, PendingStudySessionDeletion)······htmx.HxError(w, http.StatusInternalServerError, "Failed to update study session, try again later.")htmx.HxError(w, http.StatusUnauthorized, "You do not have permissions to edit this study session.")·········htmx.HxError(w, http.StatusBadRequest, "Failed to update study session, ensure all data is valid.")···htmx.HxError(w, http.StatusBadRequest, "Study session description cannot be more than 256 characters.")···htmx.HxError(w, http.StatusInternalServerError, "Failed to update study session, try again later.")···············htmx.HxError(w, http.StatusBadRequest, "Failed to update study session, ensure all data is valid.")···htmx.HxError(w, http.StatusBadRequest, "Study session description cannot be more than 256 characters.")···htmx.HxError(w, http.StatusInternalServerError, "Failed to create study session, try again later.")···Set("date_is_today", newStudySession.Date.Truncate(24*time.Hour).Equal(time.Now().UTC().In(loc).Truncate(24*time.Hour))),·········htmx.HxError(w, http.StatusInternalServerError, "Failed to delete study session, try again later.")···htmx.HxError(w, http.StatusInternalServerError, "Failed to delete study session, try again later.")·········htmx.HxError(w, http.StatusInternalServerError, "Failed to retrieve study session, try again later.")htmx.HxError(w, http.StatusInternalServerError, "Failed to retrieve bsky profile, try again later.")·········commentFeed, err := db.GetCommentsForSession(h.Db, studySessionUri.String(), pageSize+1, int(offset))···
REVERTED
internal/server/handlers/resource.go
REVERTED
internal/server/handlers/resource.go
·········htmx.HxError(w, http.StatusBadRequest, "Failed to create resource, ensure all fields contain valid data.")··················htmx.HxError(w, http.StatusUnauthorized, "You do not have permissions to delete this resource.")···············htmx.HxError(w, http.StatusBadRequest, "Failed to create resource, ensure all fields contain valid data.")······if updatedResource.Link != nil && (resource.Link == nil || *updatedResource.Link != *resource.Link) {-l.Error("invalid resource link", "link", resource.Link, "threatType", linkCheckResult.ThreatType, "err", linkCheckResult.Err)······
·········htmx.HxError(w, http.StatusBadRequest, "Failed to create resource, ensure all fields contain valid data.")··················htmx.HxError(w, http.StatusUnauthorized, "You do not have permissions to delete this resource.")···············htmx.HxError(w, http.StatusBadRequest, "Failed to create resource, ensure all fields contain valid data.")······if updatedResource.Link != nil && (resource.Link == nil || *updatedResource.Link != *resource.Link) {······
REVERTED
internal/server/handlers/comment.go
REVERTED
internal/server/handlers/comment.go
···················································
···················································
REVERTED
internal/server/handlers/follow.go
REVERTED
internal/server/handlers/follow.go
························
························
REVERTED
internal/server/handlers/activity.go
REVERTED
internal/server/handlers/activity.go
·········htmx.HxError(w, http.StatusBadRequest, "Failed to create activity, ensure all fields contain valid data.")······························htmx.HxError(w, http.StatusBadRequest, "Failed to create activity, ensure all fields contain valid data.")·········
·········htmx.HxError(w, http.StatusBadRequest, "Failed to create activity, ensure all fields contain valid data.")······························htmx.HxError(w, http.StatusBadRequest, "Failed to create activity, ensure all fields contain valid data.")·········
REVERTED
internal/server/handlers/notification.go
REVERTED
internal/server/handlers/notification.go
···············htmx.HxError(w, http.StatusInternalServerError, "Failed to mark all notifications as read, try again later.")
···············htmx.HxError(w, http.StatusInternalServerError, "Failed to mark all notifications as read, try again later.")
REVERTED
internal/server/handlers/reaction.go
REVERTED
internal/server/handlers/reaction.go
············htmx.HxError(w, http.StatusInternalServerError, "Failed to get global study session feed, try again later.")htmx.HxError(w, http.StatusInternalServerError, "Failed to get global study session feed, try again later.")···htmx.HxError(w, http.StatusBadRequest, "You cannot react multiple times with the same reaction.")··················
············htmx.HxError(w, http.StatusInternalServerError, "Failed to get global study session feed, try again later.")htmx.HxError(w, http.StatusInternalServerError, "Failed to get global study session feed, try again later.")···htmx.HxError(w, http.StatusBadRequest, "You cannot react multiple times with the same reaction.")··················
REVERTED
internal/server/handlers/stats.go
REVERTED
internal/server/handlers/stats.go
············
············
REVERTED
internal/consumer/ingester.go
REVERTED
internal/consumer/ingester.go
·······································err = db.CreateNotification(tx, subjectDid.String(), did, subject.String(), db.NotificationTypeReaction)············err = db.CreateNotification(tx, subjectDid.String(), did, subjectUri.String(), db.NotificationTypeComment)···err = db.CreateNotification(tx, comment.ParentCommentUri.Authority().String(), did, parentCommentUri.String(), db.NotificationTypeReply)
·······································err = db.CreateNotification(tx, subjectDid.String(), did, subject.String(), db.NotificationTypeReaction)············err = db.CreateNotification(tx, subjectDid.String(), did, subjectUri.String(), db.NotificationTypeComment)···err = db.CreateNotification(tx, comment.ParentCommentUri.Authority().String(), did, parentCommentUri.String(), db.NotificationTypeReply)
REVERTED
internal/server/handlers/router.go
REVERTED
internal/server/handlers/router.go
······
REVERTED
internal/server/middleware/middleware.go
REVERTED
internal/server/middleware/middleware.go
······-func New(oauth *oauth.OAuth, db *db.DB, idResolver *atproto.Resolver, logger *slog.Logger) Middleware {···············
·····················
ERROR
internal/server/handlers/login.go
ERROR
internal/server/handlers/login.go
Failed to calculate interdiff for this file.
NEW
internal/server/app.go
NEW
internal/server/app.go
NEW
internal/server/handlers/profile.go
NEW
internal/server/handlers/profile.go
NEW
internal/server/oauth/handler.go
NEW
internal/server/oauth/handler.go
·········
·········+htmx.HxError(w, http.StatusBadRequest, fmt.Sprintf("'%s' is an invalid handle", resolved.Handle.String()))+ex, _ := comatproto.RepoGetRecord(r.Context(), client, "", yoten.ActorProfileNSID, did, "self")+htmx.HxError(w, http.StatusInternalServerError, "Failed to announce profile creation, try again later")
NEW
internal/server/oauth/oauth.go
NEW
internal/server/oauth/oauth.go
·········
······+func New(config *config.Config, ph posthog.Client, idResolver *atproto.Resolver, logger *slog.Logger) (*OAuth, error) {···