From 18f0bfed1fb98b52df44c8b875988c683276a014 Mon Sep 17 00:00:00 2001 From: ninjatottori Date: Mon, 10 Oct 2011 18:43:39 +0900 Subject: 補完リストをちょろっと変更 --- facebook.js | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'facebook.js') diff --git a/facebook.js b/facebook.js index ce8db0a..7bae5f2 100644 --- a/facebook.js +++ b/facebook.js @@ -1,7 +1,7 @@ // INFO {{{ let INFO = <> -
  • - {info.name} : {info.message} {info.link} + + + {info.user_name} + : {info.name} {info.story} {info.message} {info.link} {info.description} {info.likes} {info.comments}
  • @@ -269,7 +272,7 @@ function setup(){ // access_token取得後 {{{ function statusObjectFilter(item) let (desc = item.description) - (this.match(desc.name) || this.match(desc.message) || this.match(desc.link)); + (this.match(desc.user_name) || this.match(desc.message) || this.match(desc.link) || this.match(desc.description)); } @@ -281,12 +284,16 @@ function setup(){ // access_token取得後 {{{ (command === "open") ? (d["link"] || (d["actions"] ? d["actions"][0]["link"] : FB.www)) : d["id"] , { type:d["type"], - name:d["from"]["name"], - message:d["message"] ? d["message"] : '', - icon:FB.graph + d["from"]["id"] + "/picture/" , - link:d["link"] ? d["link"] : '', + icon:d["icon"], + user_name:d["from"]["name"], + message:(d["message"] || ''), + user_icon:FB.graph + d["from"]["id"] + "/picture/" , + link:(d["link"] || ''), likes:d["likes"] ? d["likes"]["count"] + ' likes' : '' , comments:(d["comments"]["count"] > 0) ? d["comments"]["count"] + ' comments' : '' , + name:(d["name"] || ''), + story:(d["story"] || ''), + description:(d["description"] || ''), } ]); } -- cgit v1.2.3