From 86c927082074ea4bf9a7a387fcff086be9cbe7bf Mon Sep 17 00:00:00 2001 From: Elara Musayelyan Date: Thu, 20 Apr 2023 19:27:38 -0700 Subject: [PATCH] Update domain --- cmd/gen/generator/routes.go | 10 +++++----- cmd/gen/generator/struct.go | 4 ++-- cmd/gen/main.go | 8 ++++---- examples/http/main.go | 4 ++-- examples/websocket/main.go | 4 ++-- go.mod | 2 +- go.sum | 6 +++--- lemmy.go | 2 +- routes.gen.go | 4 ++-- types/activity.gen.go | 2 +- types/actor_language.gen.go | 2 +- types/comment.1.gen.go | 2 +- types/comment.gen.go | 2 +- types/comment_reply.gen.go | 2 +- types/comment_report.gen.go | 2 +- types/community.1.gen.go | 8 +++++++- types/community.gen.go | 2 +- types/community_block.gen.go | 2 +- types/email_verification.gen.go | 2 +- types/federation_allowlist.gen.go | 2 +- types/federation_blocklist.gen.go | 2 +- types/handlers.gen.go | 2 +- types/instance.gen.go | 2 +- types/language.gen.go | 2 +- types/lib.1.gen.go | 2 +- types/lib.gen.go | 2 +- types/local_site.gen.go | 5 ++++- types/local_site_rate_limit.gen.go | 2 +- types/local_user.gen.go | 2 +- types/mod.1.gen.go | 2 +- types/mod.gen.go | 2 +- types/moderator.gen.go | 2 +- types/password_reset_request.gen.go | 2 +- types/person.1.gen.go | 2 +- types/person.gen.go | 2 +- types/person_block.gen.go | 2 +- types/person_mention.gen.go | 2 +- types/post.1.gen.go | 2 +- types/post.gen.go | 2 +- types/post_report.gen.go | 2 +- types/private_message.1.gen.go | 2 +- types/private_message.gen.go | 2 +- types/private_message_report.gen.go | 2 +- types/registration_application.gen.go | 2 +- types/request.gen.go | 2 +- types/secret.gen.go | 2 +- types/send.gen.go | 2 +- types/sensitive.gen.go | 2 +- types/site.1.gen.go | 2 +- types/site.gen.go | 3 ++- types/structs.1.gen.go | 2 +- types/structs.2.gen.go | 2 +- types/structs.3.gen.go | 2 +- types/structs.4.gen.go | 2 +- types/structs.gen.go | 2 +- types/tagline.gen.go | 2 +- types/utils.gen.go | 2 +- websocket.go | 2 +- 58 files changed, 81 insertions(+), 71 deletions(-) diff --git a/cmd/gen/generator/routes.go b/cmd/gen/generator/routes.go index 9aaec6b..d0048e7 100644 --- a/cmd/gen/generator/routes.go +++ b/cmd/gen/generator/routes.go @@ -5,7 +5,7 @@ import ( "strings" "github.com/dave/jennifer/jen" - "go.arsenm.dev/go-lemmy/cmd/gen/parser" + "go.elara.ws/go-lemmy/cmd/gen/parser" ) type RoutesGenerator struct { @@ -19,7 +19,7 @@ func NewRoutes(w io.Writer, pkgName string) *RoutesGenerator { func (r *RoutesGenerator) Generate(routes []parser.Route, impls map[string]string) error { f := jen.NewFile(r.PkgName) - f.HeaderComment("Code generated by go.arsenm.dev/go-lemmy/cmd/gen (routes generator). DO NOT EDIT.") + f.HeaderComment("Code generated by go.elara.ws/go-lemmy/cmd/gen (routes generator). DO NOT EDIT.") for _, r := range routes { resStruct := impls[r.Struct] @@ -28,12 +28,12 @@ func (r *RoutesGenerator) Generate(routes []parser.Route, impls map[string]strin jen.Id("c").Id("*Client"), ).Id(transformName(r.Struct)).Params( jen.Id("ctx").Qual("context", "Context"), - jen.Id("data").Qual("go.arsenm.dev/go-lemmy/types", r.Struct), + jen.Id("data").Qual("go.elara.ws/go-lemmy/types", r.Struct), ).Params( - jen.Op("*").Qual("go.arsenm.dev/go-lemmy/types", resStruct), + jen.Op("*").Qual("go.elara.ws/go-lemmy/types", resStruct), jen.Error(), ).BlockFunc(func(g *jen.Group) { - g.Id("resData").Op(":=").Op("&").Qual("go.arsenm.dev/go-lemmy/types", resStruct).Block() + g.Id("resData").Op(":=").Op("&").Qual("go.elara.ws/go-lemmy/types", resStruct).Block() var funcName string switch r.Method { diff --git a/cmd/gen/generator/struct.go b/cmd/gen/generator/struct.go index 424279b..857b553 100644 --- a/cmd/gen/generator/struct.go +++ b/cmd/gen/generator/struct.go @@ -5,7 +5,7 @@ import ( "strings" "github.com/dave/jennifer/jen" - "go.arsenm.dev/go-lemmy/cmd/gen/parser" + "go.elara.ws/go-lemmy/cmd/gen/parser" ) type StructGenerator struct { @@ -19,7 +19,7 @@ func NewStruct(w io.Writer, pkgName string) *StructGenerator { func (s *StructGenerator) Generate(items []parser.Item) error { f := jen.NewFile(s.PkgName) - f.HeaderComment("Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.") + f.HeaderComment("Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.") for _, item := range items { if item.Struct != nil { diff --git a/cmd/gen/main.go b/cmd/gen/main.go index 9539fd2..f3af99f 100644 --- a/cmd/gen/main.go +++ b/cmd/gen/main.go @@ -8,10 +8,10 @@ import ( "strconv" "strings" - "go.arsenm.dev/go-lemmy/cmd/gen/generator" - "go.arsenm.dev/go-lemmy/cmd/gen/parser" - "go.arsenm.dev/logger" - "go.arsenm.dev/logger/log" + "go.elara.ws/go-lemmy/cmd/gen/generator" + "go.elara.ws/go-lemmy/cmd/gen/parser" + "go.elara.ws/logger" + "go.elara.ws/logger/log" ) func init() { diff --git a/examples/http/main.go b/examples/http/main.go index 9ff0224..d13de96 100644 --- a/examples/http/main.go +++ b/examples/http/main.go @@ -3,8 +3,8 @@ package main import ( "context" - "go.arsenm.dev/go-lemmy" - "go.arsenm.dev/go-lemmy/types" + "go.elara.ws/go-lemmy" + "go.elara.ws/go-lemmy/types" ) func main() { diff --git a/examples/websocket/main.go b/examples/websocket/main.go index 2e81d49..b410022 100644 --- a/examples/websocket/main.go +++ b/examples/websocket/main.go @@ -4,8 +4,8 @@ import ( "context" "log" - "go.arsenm.dev/go-lemmy" - "go.arsenm.dev/go-lemmy/types" + "go.elara.ws/go-lemmy" + "go.elara.ws/go-lemmy/types" ) func main() { diff --git a/go.mod b/go.mod index 67de72e..4561fc1 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ require ( github.com/dave/jennifer v1.6.0 github.com/google/go-querystring v1.1.0 github.com/gorilla/websocket v1.4.2 - go.arsenm.dev/logger v0.0.0-20230104225304-d706171ea6df + go.elara.ws/logger v0.0.0-20230421022458-e80700db2090 golang.org/x/exp v0.0.0-20230105000112-eab7a2c85304 ) diff --git a/go.sum b/go.sum index 98632fd..b09c8de 100644 --- a/go.sum +++ b/go.sum @@ -17,12 +17,12 @@ github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27k github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/testify v1.7.2 h1:4jaiDzPyXQvSd7D0EjG45355tLlV3VOECpq10pLC+8s= github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= +github.com/stretchr/testify v1.8.0 h1:pSgiaMZlXftHpm5L7V1+rVB+AZJydKsMxsQBIJw4PKk= github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778 h1:QldyIu/L63oPpyvQmHgvgickp1Yw510KJOqX7H24mg8= github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778/go.mod h1:2MuV+tbUrU1zIOPMxZ5EncGwgmMJsa+9ucAQZXxsObs= -go.arsenm.dev/logger v0.0.0-20230104225304-d706171ea6df h1:8mBHvEe7BJmpOeKSMA5YLqrGo9dCpePocTeR0C1+/2w= -go.arsenm.dev/logger v0.0.0-20230104225304-d706171ea6df/go.mod h1:RV2qydKDdoyaRkhAq8JEGvojR8eJ6bjq5WnSIlH7gYw= +go.elara.ws/logger v0.0.0-20230421022458-e80700db2090 h1:RVC8XvWo6Yw4HUshqx4TSzuBDScDghafU6QFRJ4xPZg= +go.elara.ws/logger v0.0.0-20230421022458-e80700db2090/go.mod h1:qng49owViqsW5Aey93lwBXONw20oGbJIoLVscB16mPM= golang.org/x/exp v0.0.0-20230105000112-eab7a2c85304 h1:YUqj+XKtfrn3kXjFIiZ8jwKROD7ioAOOHUuo3ZZ2opc= golang.org/x/exp v0.0.0-20230105000112-eab7a2c85304/go.mod h1:CxIveKay+FTh1D0yPZemJVgC/95VzuuOLq5Qi4xnoYc= golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= diff --git a/lemmy.go b/lemmy.go index 621c46f..3c7e00a 100644 --- a/lemmy.go +++ b/lemmy.go @@ -10,7 +10,7 @@ import ( "reflect" "github.com/google/go-querystring/query" - "go.arsenm.dev/go-lemmy/types" + "go.elara.ws/go-lemmy/types" ) // Client is a client for Lemmy's HTTP API diff --git a/routes.gen.go b/routes.gen.go index db4bf23..260426b 100644 --- a/routes.gen.go +++ b/routes.gen.go @@ -1,11 +1,11 @@ // Source: lemmy/src/api_routes_http.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (routes generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (routes generator). DO NOT EDIT. package lemmy import ( "context" - types "go.arsenm.dev/go-lemmy/types" + types "go.elara.ws/go-lemmy/types" ) func (c *Client) Site(ctx context.Context, data types.GetSite) (*types.GetSiteResponse, error) { diff --git a/types/activity.gen.go b/types/activity.gen.go index 7e656d7..9de11b3 100644 --- a/types/activity.gen.go +++ b/types/activity.gen.go @@ -1,5 +1,5 @@ // Source: lemmy/crates/db_schema/src/source/activity.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types diff --git a/types/actor_language.gen.go b/types/actor_language.gen.go index 1b2ec89..55df048 100644 --- a/types/actor_language.gen.go +++ b/types/actor_language.gen.go @@ -1,5 +1,5 @@ // Source: lemmy/crates/db_schema/src/source/actor_language.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types diff --git a/types/comment.1.gen.go b/types/comment.1.gen.go index 4428afa..abc94d6 100644 --- a/types/comment.1.gen.go +++ b/types/comment.1.gen.go @@ -1,5 +1,5 @@ // Source: lemmy/crates/db_schema/src/source/comment.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types diff --git a/types/comment.gen.go b/types/comment.gen.go index 86c3f28..6ff18f9 100644 --- a/types/comment.gen.go +++ b/types/comment.gen.go @@ -1,5 +1,5 @@ // Source: lemmy/crates/api_common/src/comment.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types diff --git a/types/comment_reply.gen.go b/types/comment_reply.gen.go index 0d02d54..855ec5a 100644 --- a/types/comment_reply.gen.go +++ b/types/comment_reply.gen.go @@ -1,5 +1,5 @@ // Source: lemmy/crates/db_schema/src/source/comment_reply.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types diff --git a/types/comment_report.gen.go b/types/comment_report.gen.go index 4866738..6d73842 100644 --- a/types/comment_report.gen.go +++ b/types/comment_report.gen.go @@ -1,5 +1,5 @@ // Source: lemmy/crates/db_schema/src/source/comment_report.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types diff --git a/types/community.1.gen.go b/types/community.1.gen.go index 91f0146..4ae78ae 100644 --- a/types/community.1.gen.go +++ b/types/community.1.gen.go @@ -1,5 +1,5 @@ // Source: lemmy/crates/db_schema/src/source/community.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types @@ -23,6 +23,8 @@ type Community struct { FollowersURL string `json:"followers_url" url:"followers_url,omitempty"` InboxURL string `json:"inbox_url" url:"inbox_url,omitempty"` SharedInboxURL Optional[string] `json:"shared_inbox_url" url:"shared_inbox_url,omitempty"` + ModeratorsURL Optional[string] `json:"moderators_url" url:"moderators_url,omitempty"` + FeaturedURL Optional[string] `json:"featured_url" url:"featured_url,omitempty"` Hidden bool `json:"hidden" url:"hidden,omitempty"` PostingRestrictedToMods bool `json:"posting_restricted_to_mods" url:"posting_restricted_to_mods,omitempty"` InstanceID int `json:"instance_id" url:"instance_id,omitempty"` @@ -64,6 +66,8 @@ type CommunityInsertForm struct { FollowersURL Optional[string] `json:"followers_url" url:"followers_url,omitempty"` InboxURL Optional[string] `json:"inbox_url" url:"inbox_url,omitempty"` SharedInboxURL Optional[string] `json:"shared_inbox_url" url:"shared_inbox_url,omitempty"` + ModeratorsURL Optional[string] `json:"moderators_url" url:"moderators_url,omitempty"` + FeaturedURL Optional[string] `json:"featured_url" url:"featured_url,omitempty"` Hidden Optional[bool] `json:"hidden" url:"hidden,omitempty"` PostingRestrictedToMods Optional[bool] `json:"posting_restricted_to_mods" url:"posting_restricted_to_mods,omitempty"` InstanceID int `json:"instance_id" url:"instance_id,omitempty"` @@ -86,6 +90,8 @@ type CommunityUpdateForm struct { FollowersURL Optional[string] `json:"followers_url" url:"followers_url,omitempty"` InboxURL Optional[string] `json:"inbox_url" url:"inbox_url,omitempty"` SharedInboxURL Optional[Optional[string]] `json:"shared_inbox_url" url:"shared_inbox_url,omitempty"` + ModeratorsURL Optional[string] `json:"moderators_url" url:"moderators_url,omitempty"` + FeaturedURL Optional[string] `json:"featured_url" url:"featured_url,omitempty"` Hidden Optional[bool] `json:"hidden" url:"hidden,omitempty"` PostingRestrictedToMods Optional[bool] `json:"posting_restricted_to_mods" url:"posting_restricted_to_mods,omitempty"` } diff --git a/types/community.gen.go b/types/community.gen.go index 1f8e9e7..172b0d8 100644 --- a/types/community.gen.go +++ b/types/community.gen.go @@ -1,5 +1,5 @@ // Source: lemmy/crates/api_common/src/community.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types diff --git a/types/community_block.gen.go b/types/community_block.gen.go index 591148d..1662822 100644 --- a/types/community_block.gen.go +++ b/types/community_block.gen.go @@ -1,5 +1,5 @@ // Source: lemmy/crates/db_schema/src/source/community_block.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types diff --git a/types/email_verification.gen.go b/types/email_verification.gen.go index 7b75a12..10ab5f3 100644 --- a/types/email_verification.gen.go +++ b/types/email_verification.gen.go @@ -1,5 +1,5 @@ // Source: lemmy/crates/db_schema/src/source/email_verification.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types diff --git a/types/federation_allowlist.gen.go b/types/federation_allowlist.gen.go index 0cb65d5..1b711c0 100644 --- a/types/federation_allowlist.gen.go +++ b/types/federation_allowlist.gen.go @@ -1,5 +1,5 @@ // Source: lemmy/crates/db_schema/src/source/federation_allowlist.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types diff --git a/types/federation_blocklist.gen.go b/types/federation_blocklist.gen.go index f8b38c8..3c00bf2 100644 --- a/types/federation_blocklist.gen.go +++ b/types/federation_blocklist.gen.go @@ -1,5 +1,5 @@ // Source: lemmy/crates/db_schema/src/source/federation_blocklist.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types diff --git a/types/handlers.gen.go b/types/handlers.gen.go index bfc9dbc..4532f58 100644 --- a/types/handlers.gen.go +++ b/types/handlers.gen.go @@ -1,4 +1,4 @@ // Source: lemmy/crates/api_common/src/websocket/handlers.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types diff --git a/types/instance.gen.go b/types/instance.gen.go index 287efb7..501f224 100644 --- a/types/instance.gen.go +++ b/types/instance.gen.go @@ -1,5 +1,5 @@ // Source: lemmy/crates/db_schema/src/source/instance.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types diff --git a/types/language.gen.go b/types/language.gen.go index 2e538c2..e7ae8e9 100644 --- a/types/language.gen.go +++ b/types/language.gen.go @@ -1,5 +1,5 @@ // Source: lemmy/crates/db_schema/src/source/language.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types diff --git a/types/lib.1.gen.go b/types/lib.1.gen.go index 4af609e..abdb30e 100644 --- a/types/lib.1.gen.go +++ b/types/lib.1.gen.go @@ -1,5 +1,5 @@ // Source: lemmy/crates/db_schema/src/lib.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types diff --git a/types/lib.gen.go b/types/lib.gen.go index e2efc4f..7f9b61c 100644 --- a/types/lib.gen.go +++ b/types/lib.gen.go @@ -1,4 +1,4 @@ // Source: lemmy/crates/api_common/src/lib.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types diff --git a/types/local_site.gen.go b/types/local_site.gen.go index 318af7a..c5f36f4 100644 --- a/types/local_site.gen.go +++ b/types/local_site.gen.go @@ -1,5 +1,5 @@ // Source: lemmy/crates/db_schema/src/source/local_site.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types @@ -26,6 +26,7 @@ type LocalSite struct { CaptchaEnabled bool `json:"captcha_enabled" url:"captcha_enabled,omitempty"` CaptchaDifficulty string `json:"captcha_difficulty" url:"captcha_difficulty,omitempty"` RegistrationMode RegistrationMode `json:"registration_mode" url:"registration_mode,omitempty"` + ReportsEmailAdmins bool `json:"reports_email_admins" url:"reports_email_admins,omitempty"` Published LemmyTime `json:"published" url:"published,omitempty"` Updated LemmyTime `json:"updated" url:"updated,omitempty"` } @@ -51,6 +52,7 @@ type LocalSiteInsertForm struct { CaptchaEnabled Optional[bool] `json:"captcha_enabled" url:"captcha_enabled,omitempty"` CaptchaDifficulty Optional[string] `json:"captcha_difficulty" url:"captcha_difficulty,omitempty"` RegistrationMode Optional[RegistrationMode] `json:"registration_mode" url:"registration_mode,omitempty"` + ReportsEmailAdmins Optional[bool] `json:"reports_email_admins" url:"reports_email_admins,omitempty"` } type LocalSiteUpdateForm struct { SiteSetup Optional[bool] `json:"site_setup" url:"site_setup,omitempty"` @@ -73,6 +75,7 @@ type LocalSiteUpdateForm struct { CaptchaEnabled Optional[bool] `json:"captcha_enabled" url:"captcha_enabled,omitempty"` CaptchaDifficulty Optional[string] `json:"captcha_difficulty" url:"captcha_difficulty,omitempty"` RegistrationMode Optional[RegistrationMode] `json:"registration_mode" url:"registration_mode,omitempty"` + ReportsEmailAdmins Optional[bool] `json:"reports_email_admins" url:"reports_email_admins,omitempty"` Updated LemmyTime `json:"updated" url:"updated,omitempty"` } type RegistrationMode string diff --git a/types/local_site_rate_limit.gen.go b/types/local_site_rate_limit.gen.go index 5673ee6..1ba674a 100644 --- a/types/local_site_rate_limit.gen.go +++ b/types/local_site_rate_limit.gen.go @@ -1,5 +1,5 @@ // Source: lemmy/crates/db_schema/src/source/local_site_rate_limit.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types diff --git a/types/local_user.gen.go b/types/local_user.gen.go index 76cc095..23f2046 100644 --- a/types/local_user.gen.go +++ b/types/local_user.gen.go @@ -1,5 +1,5 @@ // Source: lemmy/crates/db_schema/src/source/local_user.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types diff --git a/types/mod.1.gen.go b/types/mod.1.gen.go index d4cf02a..f754535 100644 --- a/types/mod.1.gen.go +++ b/types/mod.1.gen.go @@ -1,4 +1,4 @@ // Source: lemmy/crates/db_schema/src/source/mod.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types diff --git a/types/mod.gen.go b/types/mod.gen.go index a4823bf..a7bf7c4 100644 --- a/types/mod.gen.go +++ b/types/mod.gen.go @@ -1,5 +1,5 @@ // Source: lemmy/crates/api_common/src/websocket/mod.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types diff --git a/types/moderator.gen.go b/types/moderator.gen.go index e0c1202..6a4ef18 100644 --- a/types/moderator.gen.go +++ b/types/moderator.gen.go @@ -1,5 +1,5 @@ // Source: lemmy/crates/db_schema/src/source/moderator.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types diff --git a/types/password_reset_request.gen.go b/types/password_reset_request.gen.go index 7af9813..d0610e0 100644 --- a/types/password_reset_request.gen.go +++ b/types/password_reset_request.gen.go @@ -1,5 +1,5 @@ // Source: lemmy/crates/db_schema/src/source/password_reset_request.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types diff --git a/types/person.1.gen.go b/types/person.1.gen.go index 58ec22d..940b672 100644 --- a/types/person.1.gen.go +++ b/types/person.1.gen.go @@ -1,5 +1,5 @@ // Source: lemmy/crates/db_schema/src/source/person.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types diff --git a/types/person.gen.go b/types/person.gen.go index e80493d..2c6fb09 100644 --- a/types/person.gen.go +++ b/types/person.gen.go @@ -1,5 +1,5 @@ // Source: lemmy/crates/api_common/src/person.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types diff --git a/types/person_block.gen.go b/types/person_block.gen.go index 2021143..81a5d1e 100644 --- a/types/person_block.gen.go +++ b/types/person_block.gen.go @@ -1,5 +1,5 @@ // Source: lemmy/crates/db_schema/src/source/person_block.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types diff --git a/types/person_mention.gen.go b/types/person_mention.gen.go index b402e83..f073953 100644 --- a/types/person_mention.gen.go +++ b/types/person_mention.gen.go @@ -1,5 +1,5 @@ // Source: lemmy/crates/db_schema/src/source/person_mention.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types diff --git a/types/post.1.gen.go b/types/post.1.gen.go index 4f33ad2..16b59b7 100644 --- a/types/post.1.gen.go +++ b/types/post.1.gen.go @@ -1,5 +1,5 @@ // Source: lemmy/crates/db_schema/src/source/post.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types diff --git a/types/post.gen.go b/types/post.gen.go index 0ee5155..5e45bf1 100644 --- a/types/post.gen.go +++ b/types/post.gen.go @@ -1,5 +1,5 @@ // Source: lemmy/crates/api_common/src/post.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types diff --git a/types/post_report.gen.go b/types/post_report.gen.go index 6591e08..ac3d1cb 100644 --- a/types/post_report.gen.go +++ b/types/post_report.gen.go @@ -1,5 +1,5 @@ // Source: lemmy/crates/db_schema/src/source/post_report.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types diff --git a/types/private_message.1.gen.go b/types/private_message.1.gen.go index 12035ef..c2d5c64 100644 --- a/types/private_message.1.gen.go +++ b/types/private_message.1.gen.go @@ -1,5 +1,5 @@ // Source: lemmy/crates/db_schema/src/source/private_message.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types diff --git a/types/private_message.gen.go b/types/private_message.gen.go index c882fbd..88b8ad6 100644 --- a/types/private_message.gen.go +++ b/types/private_message.gen.go @@ -1,5 +1,5 @@ // Source: lemmy/crates/api_common/src/private_message.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types diff --git a/types/private_message_report.gen.go b/types/private_message_report.gen.go index 4870236..12a30bb 100644 --- a/types/private_message_report.gen.go +++ b/types/private_message_report.gen.go @@ -1,5 +1,5 @@ // Source: lemmy/crates/db_schema/src/source/private_message_report.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types diff --git a/types/registration_application.gen.go b/types/registration_application.gen.go index 4b4fc30..c9529b9 100644 --- a/types/registration_application.gen.go +++ b/types/registration_application.gen.go @@ -1,5 +1,5 @@ // Source: lemmy/crates/db_schema/src/source/registration_application.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types diff --git a/types/request.gen.go b/types/request.gen.go index d7ccbbc..0f2f18c 100644 --- a/types/request.gen.go +++ b/types/request.gen.go @@ -1,4 +1,4 @@ // Source: lemmy/crates/api_common/src/request.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types diff --git a/types/secret.gen.go b/types/secret.gen.go index cf9054f..c797b0a 100644 --- a/types/secret.gen.go +++ b/types/secret.gen.go @@ -1,5 +1,5 @@ // Source: lemmy/crates/db_schema/src/source/secret.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types diff --git a/types/send.gen.go b/types/send.gen.go index 5bafb33..5481cdb 100644 --- a/types/send.gen.go +++ b/types/send.gen.go @@ -1,4 +1,4 @@ // Source: lemmy/crates/api_common/src/websocket/send.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types diff --git a/types/sensitive.gen.go b/types/sensitive.gen.go index 1aa7635..0d7dd26 100644 --- a/types/sensitive.gen.go +++ b/types/sensitive.gen.go @@ -1,4 +1,4 @@ // Source: lemmy/crates/api_common/src/sensitive.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types diff --git a/types/site.1.gen.go b/types/site.1.gen.go index e5fc0e3..15c79c0 100644 --- a/types/site.1.gen.go +++ b/types/site.1.gen.go @@ -1,5 +1,5 @@ // Source: lemmy/crates/db_schema/src/source/site.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types diff --git a/types/site.gen.go b/types/site.gen.go index bd4228d..88a6c95 100644 --- a/types/site.gen.go +++ b/types/site.gen.go @@ -1,5 +1,5 @@ // Source: lemmy/crates/api_common/src/site.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types @@ -145,6 +145,7 @@ type EditSite struct { BlockedInstances Optional[[]string] `json:"blocked_instances" url:"blocked_instances,omitempty"` Taglines Optional[[]string] `json:"taglines" url:"taglines,omitempty"` RegistrationMode Optional[RegistrationMode] `json:"registration_mode" url:"registration_mode,omitempty"` + ReportsEmailAdmins Optional[bool] `json:"reports_email_admins" url:"reports_email_admins,omitempty"` Auth string `json:"auth" url:"auth,omitempty"` } type GetSite struct { diff --git a/types/structs.1.gen.go b/types/structs.1.gen.go index aa988ca..ed25dcb 100644 --- a/types/structs.1.gen.go +++ b/types/structs.1.gen.go @@ -1,5 +1,5 @@ // Source: lemmy/crates/db_views_actor/src/structs.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types diff --git a/types/structs.2.gen.go b/types/structs.2.gen.go index 01c0790..fc79bc6 100644 --- a/types/structs.2.gen.go +++ b/types/structs.2.gen.go @@ -1,5 +1,5 @@ // Source: lemmy/crates/db_views/src/structs.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types diff --git a/types/structs.3.gen.go b/types/structs.3.gen.go index 03f20a8..6b6a378 100644 --- a/types/structs.3.gen.go +++ b/types/structs.3.gen.go @@ -1,5 +1,5 @@ // Source: lemmy/crates/db_views_moderator/src/structs.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types diff --git a/types/structs.4.gen.go b/types/structs.4.gen.go index e440153..a3ab528 100644 --- a/types/structs.4.gen.go +++ b/types/structs.4.gen.go @@ -1,5 +1,5 @@ // Source: lemmy/crates/db_schema/src/aggregates/structs.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types diff --git a/types/structs.gen.go b/types/structs.gen.go index 17db589..1aeaca8 100644 --- a/types/structs.gen.go +++ b/types/structs.gen.go @@ -1,5 +1,5 @@ // Source: lemmy/crates/api_common/src/websocket/structs.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types diff --git a/types/tagline.gen.go b/types/tagline.gen.go index d31650f..69d8bb6 100644 --- a/types/tagline.gen.go +++ b/types/tagline.gen.go @@ -1,5 +1,5 @@ // Source: lemmy/crates/db_schema/src/source/tagline.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types diff --git a/types/utils.gen.go b/types/utils.gen.go index 141aa1a..7b9279d 100644 --- a/types/utils.gen.go +++ b/types/utils.gen.go @@ -1,5 +1,5 @@ // Source: lemmy/crates/api_common/src/utils.rs -// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. +// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT. package types diff --git a/websocket.go b/websocket.go index ee0ba8d..7065f71 100644 --- a/websocket.go +++ b/websocket.go @@ -12,7 +12,7 @@ import ( "github.com/cenkalti/backoff/v4" "github.com/gorilla/websocket" - "go.arsenm.dev/go-lemmy/types" + "go.elara.ws/go-lemmy/types" ) type authData struct {