Work on AP-ing media and extending likes and whatnot
All checks were successful
/ docker (push) Successful in 1m56s
All checks were successful
/ docker (push) Successful in 1m56s
Also added two fields to roles model, but haven't ran the various generators yet
This commit is contained in:
parent
1fcf47bffc
commit
81a01fbf8b
10 changed files with 59 additions and 4 deletions
|
@ -85,6 +85,9 @@ type Role struct {
|
|||
HasMentionCountLimit *bool // Local & remote
|
||||
MentionLimit *uint32 // Local & remote
|
||||
|
||||
MaxIndividualFileSize *uint64 // Local
|
||||
MaxTotalFileSize *uint64 // Local
|
||||
|
||||
// CanViewBoosts *bool
|
||||
// CanViewQuotes *bool
|
||||
// CanViewMedia *bool
|
||||
|
|
|
@ -42,6 +42,9 @@ var DefaultUserRole = Role{
|
|||
uint32(math.MaxUint32),
|
||||
), // Set this to max, even if not used due to *HasMentionCountLimit == false
|
||||
|
||||
MaxIndividualFileSize: other.IntoPointer(uint64(10 << 20)), // 10 MB
|
||||
MaxTotalFileSize: other.IntoPointer(uint64(500 << 20)), // 500 MB
|
||||
|
||||
AutoNsfwMedia: other.IntoPointer(false),
|
||||
AutoCwPosts: other.IntoPointer(false),
|
||||
AutoCwPostsText: nil,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue