init
This commit is contained in:
commit
2586161abd
49 changed files with 4171 additions and 0 deletions
16
internal/database/blog.go
Normal file
16
internal/database/blog.go
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
package database
|
||||
|
||||
import "github.com/oklog/ulid/v2"
|
||||
|
||||
// Blog is a blog, or Person in ActivityPub terms.
|
||||
type Blog struct {
|
||||
ID ulid.ULID
|
||||
Name string
|
||||
Domain *string
|
||||
|
||||
Bio string
|
||||
|
||||
AccountID ulid.ULID
|
||||
}
|
||||
|
||||
func (b Blog) Remote() bool { return b.Domain != nil }
|
||||
Loading…
Add table
Add a link
Reference in a new issue