Skip to content

Instantly share code, notes, and snippets.

@958
Created March 26, 2012 00:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 958/2201930 to your computer and use it in GitHub Desktop.
Save 958/2201930 to your computer and use it in GitHub Desktop.
@@ -1518,7 +1518,10 @@
lastKey : "extensions.keysnail.plugins.twitter_client.last_status_id",
oauth : gOAuth,
lastIDHook : $U.bind(Notifier.updateAllStatusbars, Notifier),
- beginCount : gTimelineCountBeginning
+ beginCount : gTimelineCountBeginning,
+ params : {
+ include_entities : true
+ }
}
);
@@ -1530,7 +1533,10 @@
lastKey : "extensions.keysnail.plugins.twitter_client.last_mention_id",
oauth : gOAuth,
lastIDHook : $U.bind(Notifier.updateAllStatusbars, Notifier),
- beginCount : gTimelineCountEveryUpdates
+ beginCount : gTimelineCountEveryUpdates,
+ params : {
+ include_entities : true
+ }
}
);
@@ -1543,7 +1549,10 @@
oauth : gOAuth,
mapper : function (statuses) statuses.map(function (status) (status.user = status.sender, status)),
lastIDHook : $U.bind(Notifier.updateAllStatusbars, Notifier),
- beginCount : gTimelineCountEveryUpdates
+ beginCount : gTimelineCountEveryUpdates,
+ params : {
+ include_entities : true
+ }
}
);
@@ -1554,7 +1563,10 @@
interval : pOptions["dm_update_interval"],
oauth : gOAuth,
mapper : function (statuses) statuses.map(function (status) (status.user = status.sender, status)),
- beginCount : gTimelineCountEveryUpdates
+ beginCount : gTimelineCountEveryUpdates,
+ params : {
+ include_entities : true
+ }
}
);
@@ -3309,7 +3321,7 @@
messageNode.appendChild($U.createElement("description", {
"class" : gLinkClass,
"tooltiptext" : entity.expanded_url,
- "value" : entity.display_url
+ "value" : entity.display_url || entity.url
}));
break;
case "user_mentions":
@@ -3386,7 +3398,7 @@
return sortedEntitiesWithType.filter(function ({ type, entity }) {
return type === "urls" || type === "media";
}).map(function ({ type, entity }) {
- return entity.expanded_url;
+ return entity.expanded_url || entity.url;
});
} else {
return $U.extractLinks(status.text);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment