tinyrelayfile
tinyrelay/internal/records/community_reader.go/

internal/records/community_reader.go raw
1package records
2
3import "context"
4
5// members is the sole records-side entry point for community membership data.
6func (s *Service) members(ctx context.Context) ([]Member, error) {
7 return s.community.Members(ctx)
8}
9
10func (s *Service) memberStatus(ctx context.Context, pubkey string) (bool, int, error) {
11 return s.community.MemberStatus(ctx, pubkey)
12}
13
14func (s *Service) moderationCounts(ctx context.Context, start int64) (ModerationCounts, error) {
15 return s.community.ModerationCounts(ctx, start)
16}

About

ownerc01503e8035f
visibilitypublic
headd730679639bf

Maintainers

  • c01503e8035f owner
  • ba1b5beed5b5 agent hermes

Clone

  • https://012.run/npub1cq2s86qrtadf36eqq3epm38wmhdynrrcwxf84eldk3f94dkv7ttsrulrz5/tinyrelay.git

Refs