message: fix card url not appearing in some notifications' text
diff: import {makeBTDModule} from '../types/btdCommonTypes';
  -import {TwitterStatus} from '../types/tweetdeckTypes';
  +import {TwitterActionEnum, TwitterStatus} from '../types/tweetdeckTypes';
  export const extendTwitterStatus = makeBTDModule(({TD, settings}) => {
  TD.services.TwitterAction.prototype.OGFromJSON =
  TD.services.TwitterAction.prototype.fromJSONObject;
  + const notificationActionTypes = [
  + TwitterActionEnum.FAVORITE,
  + TwitterActionEnum.FAVORITED_MEDIA,
  + TwitterActionEnum.FAVORITED_MENTION,
  + TwitterActionEnum.FAVORITED_RETWEET,
  + TwitterActionEnum.RETWEETED_MEDIA,
  + TwitterActionEnum.RETWEETED_MENTION,
  + TwitterActionEnum.RETWEETED_RETWEET,
  + TwitterActionEnum.RETWEET,
  + ];
  +
  TD.services.TwitterAction.prototype.fromJSONObject = function fromJSONObject(...args: any[]) {
  var baseTweet = this.OGFromJSON(...args) as TwitterStatus;
  @@ -20,16 +31,35 @@ export const extendTwitterStatus = makeBTDModule(({TD, settings}) => {
  }
  } else if (baseTweet.targetTweet && baseTweet.targetTweet.card && baseTweet.isAboutYou()) {
  const urlFromCard = baseTweet.targetTweet.card.url;
  +
  + if (baseTweet.action && notificationActionTypes.includes(baseTweet.action)) {
  + const isUrlInHtml = baseTweet.targetTweet.htmlText.includes(urlFromCard);
  +
  + if (!isUrlInHtml) {
  + const entityForUrl = baseTweet.targetTweet.entities.urls.find(
  + (u) => u.url === urlFromCard
  + );
  + if (entityForUrl) {
  + baseTweet.targetTweet.htmlText += TD.util.createUrlAnchor({
  + ...entityForUrl,
  + isUrlForAttachment: false,
  + });
  + }
  + }
  + } else {
  const isUrlInHtml = baseTweet.targetTweet.text.includes(urlFromCard);
  if (!isUrlInHtml) {
  - const entityForUrl = baseTweet.targetTweet.entities.urls.find((u) => u.url === urlFromCard);
  + const entityForUrl = baseTweet.targetTweet.entities.urls.find(
  + (u) => u.url === urlFromCard
  + );
  if (entityForUrl) {
  baseTweet.targetTweet.htmlText +=
  '\n\n' + TD.util.createUrlAnchor({...entityForUrl, isUrlForAttachment: false});
  }
  }
  }
  + }
  return baseTweet;
  };
  