muteAuthor method

Future<int> muteAuthor(
  1. String shortLink
)

Implementation

Future<int> muteAuthor(String shortLink) async {
  ModeratorEntry? target = findModeratorEntryByShortLink(shortLink);
  if (target == null) return -1;
  final surl = target.siteUrl.isNotEmpty ? target.siteUrl : _homeSite;
  //TODO add OMNIdrops

  return await _sites[surl]!.muteAuthorToQueue(target);
}