mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-12-22 18:22:11 +00:00
72ba5666a6
* don't set emoji / media image paths on failed download, migrate FileType from string to integer * fix incorrect uses of util.PtrOr, fix returned frontend media * fix migration not setting arguments correctly in where clause * fix not providing default with not null column * whoops * ensure a default gets set for media attachment file type * remove the exclusive flag from writing files in disk storage * rename PtrOr -> PtrOrZero, and rename PtrValueOr -> PtrOrValue to match * slight wording changes * use singular / plural word forms (no parentheses), is better for screen readers * update testmodels with unknown media type to have unset file details, update attachment focus handling converting to frontend, update tests * store first instance in ffmpeg wasm pool, fill remaining with closed instances |
||
---|---|---|
.. | ||
account.go | ||
accountnote.go | ||
accountsettings.go | ||
accountstats.go | ||
adminaction.go | ||
application.go | ||
block.go | ||
client.go | ||
domainallow.go | ||
domainblock.go | ||
domainpermission.go | ||
emaildomainblock.go | ||
emoji.go | ||
emojicategory.go | ||
filter.go | ||
follow.go | ||
followrequest.go | ||
headerfilter.go | ||
instance.go | ||
interactionapproval.go | ||
interactionpolicy.go | ||
list.go | ||
marker.go | ||
mediaattachment.go | ||
mention.go | ||
move.go | ||
notification.go | ||
poll.go | ||
README.md | ||
report.go | ||
routersession.go | ||
rule.go | ||
status.go | ||
statusbookmark.go | ||
statusfave.go | ||
statusmute.go | ||
tag.go | ||
thread.go | ||
threadmute.go | ||
token.go | ||
tombstone.go | ||
user.go | ||
usermute.go | ||
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!