1package hub23import (4 "gno.land/p/gnoland/boards/v0"5)67// Flag defines a type for thread and comment flags.8type Flag struct {9 // user is the user that flagged.10 user address1112 // reason is the reason for flagging.13 reason string14}1516// User returns the user that flagged.17func (f Flag) User() address { return f.user }1819// Reason returns the reason for flagging.20func (f Flag) Reason() string { return f.reason }2122// NewSafeFlag creates a safe flag.23func NewSafeFlag(ref boards.Flag) Flag {24 return Flag{25 user: ref.User,26 reason: ref.Reason,27 }28}29Signatures reconstructed verbatim from vm/qfuncs — interface params keep their inline definitions.