dropEntry method

Future<bool> dropEntry(
  1. String shortLink,
  2. int xx
)

Implementation

Future<bool> dropEntry(String shortLink, int xx) async {
  //if its xx, its pending item dropping

  ModeratorEntry? target = findModeratorEntryByShortLink(shortLink);
  if (target == null) return false;
  final li = homeSite?.dropEntryToQueue(shortLink, xx);
  if (li == null) return false;
  homeSite?.dropEntryOmni(shortLink);
  if (target.flags.isPost) {
    _tbsCache.remove(shortLink);
  }
  if (target.flags.isReply) {
    _tbsCache.clear();
  }
  return true;
}