AuthoredByWithReplies method

ModeratorEntrySet AuthoredByWithReplies(
  1. String shortLink
)

Implementation

ModeratorEntrySet AuthoredByWithReplies(String shortLink) {
  final t = threadByShortLink(shortLink);
  if (t.isEmpty) return ModeratorEntrySet();
  final nick = t.first.nick;

  ModeratorEntrySet _l = ModeratorEntrySet();
  authoredBy(nick).all.forEach((element) {
    _l.add(element);
    threadByShortLink(element.shortLink).forEach((e2) {
      if (e2.flags.isReply) {
        _l.add(e2);
      }
    });
  });
  return _l;
}