You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
tobi c8a780e12a
[bugfix] Fix setting bot on/off (#3986)
11 months ago
..
README.md Prune unnecessary nullzeros, fixup db tags (#200) 5 years ago
account.go [bugfix] Fix setting bot on/off (#3986) 11 months ago
accountnote.go [chore] Remove go-playground/validator (#2069) 3 years ago
accountsettings.go [feature] Allow user to choose "gallery" style layout for web view of profile (#3917) 12 months ago
accountstats.go [feature/performance] Store account stats in separate table (#2831) 2 years ago
adminaction.go [chore] rename New___(string) int signature functions to Parse___(string) int (#3580) 1 year ago
advancedmigration.go [feature] Conversations API (#3013) 2 years ago
application.go [feature] Refactor tokens, allow multiple app redirect_uris (#3849) 1 year ago
block.go [chore] Remove go-playground/validator (#2069) 3 years ago
common.go [performance] convert enum strings to ints (#3558) 1 year ago
conversation.go [performance] minimise log field allocations (#3529) 1 year ago
domainallow.go [feature] Allow editing domain blocks/allows, fix comment import (#3967) 12 months ago
domainblock.go [feature] Allow editing domain blocks/allows, fix comment import (#3967) 12 months ago
domainpermission.go [bugfix] Fix existing perm adoption (#3651) 1 year ago
domainpermissiondraft.go [bugfix] Fix existing perm adoption (#3651) 1 year ago
domainpermissionexclude.go [bugfix] Fix existing perm adoption (#3651) 1 year ago
domainpermissionsubscription.go [bugfix] Store LastModified for domain perm subs + send as If-Modified-Since (#3655) 1 year ago
emaildomainblock.go [chore] Remove go-playground/validator (#2069) 3 years ago
emoji.go [bugfix] Missing emoji urls (#3707) 1 year ago
emojicategory.go [chore] Remove go-playground/validator (#2069) 3 years ago
filter.go [bugfix] Fix filter title unique constraint (#3458) 1 year ago
follow.go [chore] Remove go-playground/validator (#2069) 3 years ago
followrequest.go [chore] Remove go-playground/validator (#2069) 3 years ago
headerfilter.go [bugfix] Replace named unique constraint on header filter header with generic unique directive (#2525) 2 years ago
instance.go [feature] Add global instance CSS customization setting (#3352) 1 year ago
interaction.go [feature] Distribute + ingest Accepts to followers (#3404) 1 year ago
interactionpolicy.go [performance] convert enum strings to ints (#3558) 1 year ago
list.go [performance] cache more database calls, reduce required database calls overall (#3290) 2 years ago
marker.go [chore] Remove go-playground/validator (#2069) 3 years ago
mediaattachment.go [feature] add support for receiving federated status edits (#3597) 1 year ago
mention.go [feature] add support for receiving federated status edits (#3597) 1 year ago
move.go [feature/chore] Add Move database functions + cache (#2647) 2 years ago
notification.go [feature] Push notifications (#3587) 1 year ago
poll.go [bugfix] update fedi api to support multiple separate votes in same multiple choice poll (#3809) 1 year ago
report.go [feature] Instance rules (#2125) 3 years ago
routersession.go [chore] Remove go-playground/validator (#2069) 3 years ago
rule.go [feature] Instance rules (#2125) 3 years ago
sinbinstatus.go [feature] Process `Reject` of interaction via fedi API, put rejected statuses in the "sin bin" 😈 (#3271) 2 years ago
status.go [feature] Parse content warning to HTML, serialize via client API as plaintext (#3876) 1 year ago
statusbookmark.go [chore] Remove go-playground/validator (#2069) 3 years ago
statusedit.go [bugfix] Store and expose status content type (#3870) 1 year ago
statusfave.go [feature] Federate interaction policies + Accepts; enforce policies (#3138) 2 years ago
statusmute.go [feature] Status thread mute/unmute functionality (#2278) 2 years ago
tag.go [feature] Implement following hashtags (#3141) 2 years ago
thread.go [feature] Status thread mute/unmute functionality (#2278) 2 years ago
threadmute.go [feature] Status thread mute/unmute functionality (#2278) 2 years ago
token.go [feature] Application creation + management via API + settings panel (#3906) 1 year ago
tombstone.go [chore] Remove go-playground/validator (#2069) 3 years ago
user.go [feature] add TOTP two-factor authentication (2FA) (#3960) 11 months ago
usermute.go [feature] User muting (#2960) 2 years ago
vapidkeypair.go [feature] Push notifications (#3587) 1 year ago
webpushsubscription.go [feature] Implement Web Push notification policy (#3721) 1 year ago
workertask.go [feature] persist worker queues to db (#3042) 2 years ago

README.md

A note on when we should set data structures linked to objects in the database to use the bun nullzero tag -- this should only be done if the member type is a pointer, or if the this primitive type is literally invalid with an empty value (e.g. media IDs which when empty signifies a null database value, compared to say an account note which when empty could mean either an empty note OR null database value).

Obviously it is a little more complex than this in practice, but keep it in mind!