mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-29 22:36:14 -06:00
remove unnecessary notnulls
Signed-off-by: kim (grufwub) <grufwub@gmail.com>
This commit is contained in:
parent
718503eb08
commit
850c564de1
4 changed files with 10 additions and 10 deletions
|
|
@ -78,13 +78,13 @@ type Account struct {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Does this account need an approval for new followers?
|
// Does this account need an approval for new followers?
|
||||||
Locked bool `bun:",nullzero,notnull,default:true"`
|
Locked bool `bun:",nullzero,default:true"`
|
||||||
// Should this account be shown in the instance's profile directory?
|
// Should this account be shown in the instance's profile directory?
|
||||||
Discoverable bool `bun:",nullzero,notnull,default:false"`
|
Discoverable bool `bun:",nullzero,default:false"`
|
||||||
// Default post privacy for this account
|
// Default post privacy for this account
|
||||||
Privacy Visibility `bun:",nullzero,notnull,default:'public'"`
|
Privacy Visibility `bun:",nullzero,default:'public'"`
|
||||||
// Set posts from this account to sensitive by default?
|
// Set posts from this account to sensitive by default?
|
||||||
Sensitive bool `bun:",nullzero,notnull,default:false"`
|
Sensitive bool `bun:",nullzero,default:false"`
|
||||||
// What language does this account post in?
|
// What language does this account post in?
|
||||||
Language string `bun:",nullzero,notnull,default:'en'"`
|
Language string `bun:",nullzero,notnull,default:'en'"`
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ type Follow struct {
|
||||||
TargetAccountID string `bun:"type:CHAR(26),unique:srctarget,notnull"`
|
TargetAccountID string `bun:"type:CHAR(26),unique:srctarget,notnull"`
|
||||||
TargetAccount *Account `bun:"rel:belongs-to"`
|
TargetAccount *Account `bun:"rel:belongs-to"`
|
||||||
// Does this follow also want to see reblogs and not just posts?
|
// Does this follow also want to see reblogs and not just posts?
|
||||||
ShowReblogs bool `bun:",nullzero,notnull,default:true"`
|
ShowReblogs bool `bun:",nullzero,default:true"`
|
||||||
// What is the activitypub URI of this follow?
|
// What is the activitypub URI of this follow?
|
||||||
URI string `bun:",unique,nullzero"`
|
URI string `bun:",unique,nullzero"`
|
||||||
// does the following account want to be notified when the followed account posts?
|
// does the following account want to be notified when the followed account posts?
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ type FollowRequest struct {
|
||||||
TargetAccountID string `bun:"type:CHAR(26),unique:frsrctarget,notnull"`
|
TargetAccountID string `bun:"type:CHAR(26),unique:frsrctarget,notnull"`
|
||||||
TargetAccount *Account `bun:"rel:belongs-to"`
|
TargetAccount *Account `bun:"rel:belongs-to"`
|
||||||
// Does this follow also want to see reblogs and not just posts?
|
// Does this follow also want to see reblogs and not just posts?
|
||||||
ShowReblogs bool `bun:",nullzero,notnull,default:true"`
|
ShowReblogs bool `bun:",nullzero,default:true"`
|
||||||
// What is the activitypub URI of this follow request?
|
// What is the activitypub URI of this follow request?
|
||||||
URI string `bun:",unique,nullzero"`
|
URI string `bun:",unique,nullzero"`
|
||||||
// does the following account want to be notified when the followed account posts?
|
// does the following account want to be notified when the followed account posts?
|
||||||
|
|
|
||||||
|
|
@ -138,11 +138,11 @@ const (
|
||||||
// If DIRECT is selected, boostable will be FALSE, and all other flags will be TRUE.
|
// If DIRECT is selected, boostable will be FALSE, and all other flags will be TRUE.
|
||||||
type VisibilityAdvanced struct {
|
type VisibilityAdvanced struct {
|
||||||
// This status will be federated beyond the local timeline(s)
|
// This status will be federated beyond the local timeline(s)
|
||||||
Federated bool `bun:",nullzero,notnull,default:true"`
|
Federated bool `bun:",nullzero,default:true"`
|
||||||
// This status can be boosted/reblogged
|
// This status can be boosted/reblogged
|
||||||
Boostable bool `bun:",nullzero,notnull,default:true"`
|
Boostable bool `bun:",nullzero,default:true"`
|
||||||
// This status can be replied to
|
// This status can be replied to
|
||||||
Replyable bool `bun:",nullzero,notnull,default:true"`
|
Replyable bool `bun:",nullzero,default:true"`
|
||||||
// This status can be liked/faved
|
// This status can be liked/faved
|
||||||
Likeable bool `bun:",nullzero,notnull,default:true"`
|
Likeable bool `bun:",nullzero,default:true"`
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue