Monorepo for Tangled forked from tangled.org/core
Something went wrong. Try again.
Go
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263package models
import ( "time"
"github.com/bluesky-social/indigo/atproto/syntax")
type ReactionKind string
const ( Like ReactionKind = "๐" Unlike ReactionKind = "๐" Laugh ReactionKind = "๐" Celebration ReactionKind = "๐" Confused ReactionKind = "๐ซค" Heart ReactionKind = "โค๏ธ" Rocket ReactionKind = "๐" Eyes ReactionKind = "๐")
func (rk ReactionKind) String() string { return string(rk)}
var OrderedReactionKinds = []ReactionKind{ Like, Unlike, Laugh, Celebration, Confused, Heart, Rocket, Eyes,}
func ParseReactionKind(raw string) (ReactionKind, bool) { k, ok := (map[string]ReactionKind{ "๐": Like, "๐": Unlike, "๐": Laugh, "๐": Celebration, "๐ซค": Confused, "โค๏ธ": Heart, "๐": Rocket, "๐": Eyes, })[raw] return k, ok}
type Reaction struct { ReactedByDid string ThreadAt syntax.ATURI Created time.Time Rkey string Kind ReactionKind}
type ReactionDisplayData struct { Count int Users []string}