gotosocial/internal/gtsmodel
kim 726d2ba483
[chore] some tidy ups (#3677)
* small formatting changes (no logic)

* improve code comments

* fix import cycle

* shutup stinky linter
2025-01-27 15:54:59 +00:00
..
account.go
accountnote.go
accountsettings.go [performance] convert enum strings to ints (#3558) 2024-11-25 14:48:59 +01:00
accountstats.go
adminaction.go [chore] rename New___(string) int signature functions to Parse___(string) int (#3580) 2024-11-28 12:54:22 +01:00
advancedmigration.go
application.go
block.go
client.go
common.go [performance] convert enum strings to ints (#3558) 2024-11-25 14:48:59 +01:00
conversation.go [performance] minimise log field allocations (#3529) 2024-11-11 15:45:19 +00:00
domainallow.go [bugfix] Fix existing perm adoption (#3651) 2025-01-18 18:55:27 +01:00
domainblock.go [bugfix] Fix existing perm adoption (#3651) 2025-01-18 18:55:27 +01:00
domainpermission.go [bugfix] Fix existing perm adoption (#3651) 2025-01-18 18:55:27 +01:00
domainpermissiondraft.go [bugfix] Fix existing perm adoption (#3651) 2025-01-18 18:55:27 +01:00
domainpermissionexclude.go [bugfix] Fix existing perm adoption (#3651) 2025-01-18 18:55:27 +01:00
domainpermissionsubscription.go [bugfix] Store LastModified for domain perm subs + send as If-Modified-Since (#3655) 2025-01-20 10:56:00 +01:00
emaildomainblock.go
emoji.go
emojicategory.go
filter.go [bugfix] Fix filter title unique constraint (#3458) 2024-10-19 11:04:07 +02:00
follow.go
followrequest.go
headerfilter.go
instance.go [feature] Add global instance CSS customization setting (#3352) 2024-12-02 12:24:48 +01:00
interaction.go [feature] Distribute + ingest Accepts to followers (#3404) 2024-10-08 08:51:13 +00:00
interactionpolicy.go [performance] convert enum strings to ints (#3558) 2024-11-25 14:48:59 +01:00
list.go [performance] cache more database calls, reduce required database calls overall (#3290) 2024-09-16 16:46:09 +00:00
marker.go
mediaattachment.go [feature] add support for receiving federated status edits (#3597) 2024-12-05 13:35:07 +00:00
mention.go [feature] add support for receiving federated status edits (#3597) 2024-12-05 13:35:07 +00:00
move.go
notification.go [feature] Push notifications (#3587) 2025-01-23 16:47:30 -08:00
poll.go
README.md
report.go
routersession.go
rule.go
sinbinstatus.go [feature] Process Reject of interaction via fedi API, put rejected statuses in the "sin bin" 😈 (#3271) 2024-09-10 12:34:49 +00:00
status.go [chore] replace statuses.updated_at column with statuses.edited_at (#3636) 2025-01-08 11:29:23 +01:00
statusbookmark.go
statusedit.go [feature] add support for receiving federated status edits (#3597) 2024-12-05 13:35:07 +00:00
statusfave.go
statusmute.go
tag.go
thread.go
threadmute.go
token.go [chore] some tidy ups (#3677) 2025-01-27 15:54:59 +00:00
tombstone.go
user.go
usermute.go
vapidkeypair.go [feature] Push notifications (#3587) 2025-01-23 16:47:30 -08:00
webpushsubscription.go [feature] Push notifications (#3587) 2025-01-23 16:47:30 -08:00
workertask.go

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!