mirror of
1
Fork 0
gotosocial/internal/gtsmodel
tobi 65917f5bb9
[bugfix] Log + ignore unknown notification types (#3577)
* [bugfix] Log + ignore unknown notification types

* pass context to ParseNotificationTypes
2024-11-27 17:22:45 +00:00
..
README.md
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
advancedmigration.go [feature] Conversations API (#3013) 2024-07-23 20:44:31 +01:00
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 [feature] Add domain permission drafts and excludes (#3547) 2024-11-21 13:09:58 +00:00
domainblock.go [feature] Add domain permission drafts and excludes (#3547) 2024-11-21 13:09:58 +00:00
domainpermission.go [feature] Add domain permission drafts and excludes (#3547) 2024-11-21 13:09:58 +00:00
domainpermissiondraft.go [feature] Add domain permission drafts and excludes (#3547) 2024-11-21 13:09:58 +00:00
domainpermissionexclude.go [feature] Add domain permission drafts and excludes (#3547) 2024-11-21 13:09:58 +00:00
emaildomainblock.go
emoji.go [chore] Allow gtsmodel to depend on util (#3068) 2024-07-03 15:53:54 -07:00
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
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] Use gifv type for short soundless mp4 videos (#3182) 2024-08-08 08:12:16 +00:00
mention.go [chore] status dereferencing improvements (#3255) 2024-09-10 12:33:32 +00:00
move.go
notification.go [bugfix] Log + ignore unknown notification types (#3577) 2024-11-27 17:22:45 +00:00
poll.go
report.go [feature] Instance rules (#2125) 2023-08-19 14:33:15 +02:00
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 [performance] convert enum strings to ints (#3558) 2024-11-25 14:48:59 +01:00
statusbookmark.go
statusfave.go [feature] Federate interaction policies + Accepts; enforce policies (#3138) 2024-07-26 12:04:28 +02:00
statusmute.go
tag.go [feature] Implement following hashtags (#3141) 2024-07-29 19:26:31 +01:00
thread.go
threadmute.go
token.go
tombstone.go
user.go
usermute.go
workertask.go [feature] persist worker queues to db (#3042) 2024-07-30 13:58:31 +02:00

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!