gotosocial/internal/gtsmodel
Vyr Cossont e605788b4b
[bugfix] Filter fixes (#2971)
* Add Filter.Expired convenience method, consistent with mutes

* Add missing Swagger for filter keyword/status delete and for 403s on moved accounts
2024-06-06 20:16:20 +02:00
..
account.go [feature/performance] Store account stats in separate table (#2831) 2024-04-16 13:10:13 +02:00
accountnote.go
accountsettings.go [feature] New user sign-up via web page (#2796) 2024-04-11 11:45:53 +02:00
accountstats.go [feature/performance] Store account stats in separate table (#2831) 2024-04-16 13:10:13 +02:00
adminaction.go
application.go
block.go
client.go
domainallow.go
domainblock.go
domainpermission.go
emaildomainblock.go
emoji.go
emojicategory.go
filter.go [bugfix] Filter fixes (#2971) 2024-06-06 20:16:20 +02:00
follow.go
followrequest.go
headerfilter.go
instance.go
list.go
marker.go
mediaattachment.go
mention.go [bugfix] Refactor parse mention, fix local mention bug (#2657) 2024-02-19 03:48:20 +00:00
move.go [feature/chore] Add Move database functions + cache (#2647) 2024-03-06 11:18:57 +01:00
notification.go [feature] New user sign-up via web page (#2796) 2024-04-11 11:45:53 +02:00
poll.go
README.md
report.go
routersession.go
rule.go
status.go
statusbookmark.go
statusfave.go
statusmute.go
tag.go [feature] Add experimental instance-federation-spam-filter option (#2685) 2024-02-27 12:22:05 +00:00
thread.go
threadmute.go
token.go
tombstone.go
user.go [feature] New user sign-up via web page (#2796) 2024-04-11 11:45:53 +02:00
usermute.go [feature] User muting (#2960) 2024-06-06 16:38:02 +00:00

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!