Commit 36ce29f5 authored by preetwinder's avatar preetwinder

[erp5_officejs] Add link description to post in WallSearch

parent 2c94a557
......@@ -44,12 +44,12 @@
type: "query",
sub_storage: {
type: "cachealldocs",
default_field_list: ['id', 'message', 'created_time', 'link', 'story'],
default_field_list: ['id', 'message', 'created_time', 'link', 'story', 'description'],
sub_storage: {
type: "facebook",
access_token: access_token,
user_id: user_id,
default_field_list: ['id', 'message', 'created_time', 'link', 'story']
default_field_list: ['id', 'message', 'created_time', 'link', 'story', 'description']
}
}
}
......
......@@ -236,7 +236,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>962.22780.25314.60910</string> </value>
<value> <string>962.25870.38365.40260</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -254,7 +254,7 @@
</tuple>
<state>
<tuple>
<float>1506432630.67</float>
<float>1506673198.01</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -22,6 +22,7 @@
var gadget = this;
param_list[0].select_list.push('story');
param_list[0].select_list.push('link');
param_list[0].select_list.push('description');
return gadget.jio_allDocs(param_list[0])
.push(function (result) {
var i, date, message, link, len = result.data.total_rows;
......@@ -54,6 +55,9 @@
} else {
message = result.data.rows[i].value.message;
}
if (result.data.rows[i].value.description) {
message = result.data.rows[i].value.description + ' ' + message;
}
if (result.data.rows[i].value.story) {
message += ' ' + result.data.rows[i].value.story;
}
......
......@@ -271,7 +271,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>962.22793.9752.13704</string> </value>
<value> <string>962.25870.38365.40260</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -289,7 +289,7 @@
</tuple>
<state>
<tuple>
<float>1506428719.88</float>
<float>1506673387.41</float>
<string>UTC</string>
</tuple>
</state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment