Moew weork done

This commit is contained in:
Melody Becker 2024-09-12 16:57:53 +02:00
parent 814316ab1e
commit 07d98d1ef5
10 changed files with 147 additions and 16 deletions

View file

@ -5,6 +5,10 @@ import (
"errors"
)
// For pretty printing during debug
// If `go generate` is run, it'll generate the necessary function and data for pretty printing
//go:generate stringer -type NoteTarget
// What feed a note is targeting (public, home, followers or dm)
type NoteTarget uint8
@ -14,7 +18,7 @@ const (
// The note is intended only for the home screen
// not really any idea what the difference is compared to public
// Maybe home notes don't show up on the server feed but still for everyone's home feed if it reaches them via follow or boost
NOTE_TARGET_HOME = NoteTarget(1 << iota)
NOTE_TARGET_HOME = NoteTarget(1 << iota)
// The note is intended only for followers
NOTE_TARGET_FOLLOWERS
// The note is intended only for a DM to one or more targets