r7066 - dumbhippo/trunk/server/src/com/dumbhippo/server/impl
- From: commits mugshot org
- To: online-desktop-list gnome org
- Subject: r7066 - dumbhippo/trunk/server/src/com/dumbhippo/server/impl
- Date: Fri, 14 Dec 2007 17:12:51 -0600 (CST)
Author: marinaz
Date: 2007-12-14 17:12:51 -0600 (Fri, 14 Dec 2007)
New Revision: 7066
Modified:
dumbhippo/trunk/server/src/com/dumbhippo/server/impl/FacebookTrackerBean.java
Log:
Use account.getOwner() when getting external accounts, not the detached user.
Modified: dumbhippo/trunk/server/src/com/dumbhippo/server/impl/FacebookTrackerBean.java
===================================================================
--- dumbhippo/trunk/server/src/com/dumbhippo/server/impl/FacebookTrackerBean.java 2007-12-14 23:01:14 UTC (rev 7065)
+++ dumbhippo/trunk/server/src/com/dumbhippo/server/impl/FacebookTrackerBean.java 2007-12-14 23:12:51 UTC (rev 7066)
@@ -273,9 +273,9 @@
});
Pair<Account, Set<ExternalAccountView>> accountsPair = TxUtils.runInTransaction(new Callable<Pair<Account, Set<ExternalAccountView>>>() {
public Pair<Account, Set<ExternalAccountView>> call() {
- UserViewpoint viewpoint = new UserViewpoint(user, Site.MUGSHOT);
Account account = accounts.lookupAccountByUser(user);
- Set<ExternalAccountView> allAccounts = externalAccounts.getExternalAccountViews(viewpoint, user);
+ UserViewpoint viewpoint = new UserViewpoint(account.getOwner(), Site.MUGSHOT);
+ Set<ExternalAccountView> allAccounts = externalAccounts.getExternalAccountViews(viewpoint, account.getOwner());
externalAccounts.loadThumbnails(viewpoint, allAccounts);
return new Pair<Account, Set<ExternalAccountView>>(account, allAccounts);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]