message: prevent "more than x hashtags" mute from crashing on notifications
diff: @@ -145,6 +145,14 @@ export const setupAME = makeBTDModule(({TD, jq}) => {
  descriptor: 'tweets with more than X hashtags',
  placeholder: 'Enter a number',
  function(t, e) {
  + if (!e.entities) {
  + return true;
  + }
  +
  + if (!Number.isSafeInteger(Number(t.value))) {
  + return true;
  + }
  +
  return e.entities.hashtags.length <= Number(t.value);
  },
  },
  @@ -276,6 +284,7 @@ export const setupAME = makeBTDModule(({TD, jq}) => {
  // Custom pass function to apply our filters
  TD.vo.Filter.prototype.pass = function pass(e) {
  if (RAMEFilters.is(this.type)) {
  + try {
  const t = this;
  e = getAMEFilterTarget(e, this.filterTarget, this.type);
  @@ -285,6 +294,10 @@ export const setupAME = makeBTDModule(({TD, jq}) => {
  }
  return shouldDisplay;
  + } catch (e) {
  + console.error(e);
  + return true;
  + }
  }
  const shouldDisplay = this._pass(e);
  