This commit is contained in:
parent
98191fd098
commit
d272fa90b4
20 changed files with 574 additions and 27 deletions
|
@ -80,9 +80,20 @@ type User struct {
|
|||
}
|
||||
|
||||
type IUser interface {
|
||||
// Get a user by a username
|
||||
// Get a user by a username, ignoring all restrictions on that user
|
||||
//
|
||||
// SELECT * FROM @@table WHERE username = @username AND deleted_at IS NULL LIMIT 1
|
||||
GetByUsernameUnrestricted(username string) (*gen.T, error)
|
||||
|
||||
// Get a user by the username.
|
||||
// Restricted to users visible to ActivityPub
|
||||
//
|
||||
// SELECT * FROM @@table WHERE
|
||||
// username = @username AND
|
||||
// deleted_at IS NULL AND
|
||||
// finished_registration = true AND
|
||||
// verified = true
|
||||
// LIMIT 1
|
||||
GetByUsername(username string) (*gen.T, error)
|
||||
|
||||
// Get all true public accounts (verified & no restricted follow & indexable)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue