r7270 - dumbhippo/trunk/server/src/com/dumbhippo/server/blocks
- From: commits mugshot org
- To: online-desktop-list gnome org
- Subject: r7270 - dumbhippo/trunk/server/src/com/dumbhippo/server/blocks
- Date: Mon, 28 Jan 2008 10:06:18 -0600 (CST)
Author: otaylor
Date: 2008-01-28 10:06:17 -0600 (Mon, 28 Jan 2008)
New Revision: 7270
Modified:
dumbhippo/trunk/server/src/com/dumbhippo/server/blocks/AbstractSingleBlockForFeedBlockHandlerBean.java
Log:
AbstractSingleBlockForFeedBockHandlerBean: Invalidate title/description/link when a new block arrives
Modified: dumbhippo/trunk/server/src/com/dumbhippo/server/blocks/AbstractSingleBlockForFeedBlockHandlerBean.java
===================================================================
--- dumbhippo/trunk/server/src/com/dumbhippo/server/blocks/AbstractSingleBlockForFeedBlockHandlerBean.java 2008-01-27 20:01:54 UTC (rev 7269)
+++ dumbhippo/trunk/server/src/com/dumbhippo/server/blocks/AbstractSingleBlockForFeedBlockHandlerBean.java 2008-01-28 16:06:17 UTC (rev 7270)
@@ -18,6 +18,9 @@
import com.dumbhippo.server.FeedSystem;
import com.dumbhippo.server.NotFoundException;
import com.dumbhippo.server.FeedSystem.NoFeedEntryException;
+import com.dumbhippo.server.dm.BlockDMO;
+import com.dumbhippo.server.dm.BlockDMOKey;
+import com.dumbhippo.server.dm.DataService;
import com.dumbhippo.server.views.ChatMessageView;
import com.dumbhippo.server.views.PersonView;
import com.dumbhippo.server.views.Viewpoint;
@@ -100,7 +103,10 @@
// entry.getDate().getTime() creates a timestamp that is too old, at least with blogspot
// so it is unreliable, because we update blocks based on timestamps
long now = System.currentTimeMillis();
- stacker.stack(getKey(user), now, user, false, StackReason.BLOCK_UPDATE);
+ Block block = stacker.stack(getKey(user), now, user, false, StackReason.BLOCK_UPDATE);
+ DataService.currentSessionRW().changed(BlockDMO.class, new BlockDMOKey(block), "title");
+ DataService.currentSessionRW().changed(BlockDMO.class, new BlockDMOKey(block), "description");
+ DataService.currentSessionRW().changed(BlockDMO.class, new BlockDMOKey(block), "link");
}
public void onExternalAccountLovedAndEnabledMaybeChanged(User user, ExternalAccount external) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]