This commit is contained in:
sam 2023-09-03 00:23:48 +02:00
commit 2586161abd
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
49 changed files with 4171 additions and 0 deletions

16
internal/database/blog.go Normal file
View 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 }