plodding along

This commit is contained in:
tsmethurst 2021-05-12 13:07:52 +02:00
commit 77736b926b
6 changed files with 472 additions and 40 deletions

View file

@ -76,15 +76,15 @@ type Account struct {
*/
// Does this account need an approval for new followers?
Locked bool `pg:",default:true"`
Locked bool `pg:",default:'true'"`
// Should this account be shown in the instance's profile directory?
Discoverable bool
// Default post privacy for this account
Privacy Visibility
// Set posts from this account to sensitive by default?
Sensitive bool `pg:",default:false"`
Sensitive bool `pg:",default:'false'"`
// What language does this account post in?
Language string `pg:",default:en"`
Language string `pg:",default:'en'"`
/*
ACTIVITYPUB THINGS

View file

@ -24,6 +24,8 @@ import "time"
type Tag struct {
// id of this tag in the database
ID string `pg:",unique,type:uuid,default:gen_random_uuid(),pk,notnull"`
// Href of this tag, eg https://example.org/tags/somehashtag
URL string
// name of this tag -- the tag without the hash part
Name string `pg:",unique,pk,notnull"`
// Which account ID is the first one we saw using this tag?