From c0f9d44312a3dee646889fe003ea7c4ef81e769f Mon Sep 17 00:00:00 2001 From: ScottDowne Date: Mon, 20 Dec 2010 14:41:48 -0500 Subject: [PATCH] [#159] twitter uses @ instead of from: in the twitter source --- plugins/twitter/popcorn.twitter.html | 2 +- plugins/twitter/popcorn.twitter.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/twitter/popcorn.twitter.html b/plugins/twitter/popcorn.twitter.html index 3dd09ac..2d9990e 100644 --- a/plugins/twitter/popcorn.twitter.html +++ b/plugins/twitter/popcorn.twitter.html @@ -13,7 +13,7 @@ start: 5, // seconds end: 15, // seconds title: 'Steve Song', - source: 'from:stevesong', + source: '@stevesong', target: 'twitterdiv', } ) .twitter({ diff --git a/plugins/twitter/popcorn.twitter.js b/plugins/twitter/popcorn.twitter.js index 9eb5c82..0f2bc4d 100644 --- a/plugins/twitter/popcorn.twitter.js +++ b/plugins/twitter/popcorn.twitter.js @@ -19,7 +19,7 @@ .twitter({ start: 5, // seconds, mandatory end: 15, // seconds, mandatory - source: 'from:stevesong', // mandatory + source: '@stevesong', // mandatory title: 'title', // optional subject: 'subject', // optional height: 200, // optional @@ -39,7 +39,7 @@ document.getElementById( options.target ).appendChild( options.container ); // add the widget's div to the target div // setup info for the widget - var source = options.source || "", + var source = options.source.replace(/^@/, "from:") || "", title = options.title || null, subject = options.subject || null, width = options.width || 250, -- 2.43.0