Share with friends from sframe and drive
This commit is contained in:
@@ -422,6 +422,19 @@ define([
|
||||
return JSON.parse(JSON.stringify(friendRequests));
|
||||
};
|
||||
|
||||
funcs.getFriends = function () {
|
||||
var priv = ctx.metadataMgr.getPrivateData();
|
||||
var friends = priv.friends;
|
||||
var goodFriends = {};
|
||||
Object.keys(friends).forEach(function (curve) {
|
||||
if (curve.length !== 44) { return; }
|
||||
var data = friends[curve];
|
||||
if (!data.notifications) { return; }
|
||||
goodFriends[curve] = friends[curve];
|
||||
});
|
||||
return goodFriends;
|
||||
};
|
||||
|
||||
// Feedback
|
||||
funcs.prepareFeedback = function (key) {
|
||||
if (typeof(key) !== 'string') { return $.noop; }
|
||||
|
||||
Reference in New Issue
Block a user