From: Art Cancro Date: Mon, 23 May 2011 21:50:44 +0000 (-0400) Subject: Revert "We need EUID indexing for Blog rooms." X-Git-Tag: v8.11~711 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=f97e057f7563f920d7ed08cd8c27df4991b56112 Revert "We need EUID indexing for Blog rooms." This reverts commit ea08a18927a544fcaf5c0645f621076ff2aad75e. --- diff --git a/citadel/euidindex.c b/citadel/euidindex.c index dbc89adaa..8bad12925 100644 --- a/citadel/euidindex.c +++ b/citadel/euidindex.c @@ -74,7 +74,6 @@ int DoesThisRoomNeedEuidIndexing(struct ctdlroom *qrbuf) { case VIEW_TASKS: return(1); case VIEW_NOTES: return(1); case VIEW_WIKI: return(1); - case VIEW_BLOG: return(1); } return(0); diff --git a/webcit/blogview_renderer.c b/webcit/blogview_renderer.c index f8ba6cd27..25af87053 100644 --- a/webcit/blogview_renderer.c +++ b/webcit/blogview_renderer.c @@ -28,10 +28,9 @@ */ struct blogpost { int top_level_id; - long *msgs; /* Array of msgnums for messages we are displaying */ - int num_msgs; /* Number of msgnums stored in 'msgs' */ - int alloc_msgs; /* Currently allocated size of array */ - char euid[BLOG_EUIDBUF_SIZE]; /* please do not change this to a StrBuf */ + long *msgs; /* Array of msgnums for messages we are displaying */ + int num_msgs; /* Number of msgnums stored in 'msgs' */ + int alloc_msgs; /* Currently allocated size of array */ }; @@ -54,10 +53,8 @@ void blogpost_render_and_destroy(struct blogpost *bp) { if (p == 0) { /* Show the number of comments */ - wc_printf("top_level_id); - wc_printf("?euid="); urlescputs(bp->euid); /* FIXME not really */ - wc_printf("?go="); urlescputs(ChrPtr(WC->CurRoom.name)); + wc_printf("top_level_id); + urlescputs(ChrPtr(WC->CurRoom.name)); wc_printf("#comments\">"); wc_printf(_("%d comments"), bp->num_msgs - 1); wc_printf(""); @@ -188,7 +185,6 @@ int blogview_LoadMsgFromServer(SharedMessageStatus *Stat, if (!bp) return(200); memset(bp, 0, sizeof (struct blogpost)); bp->top_level_id = b.id; - strcpy(bp->euid, b.euid); Put(BLOG, (const char *)&b.id, sizeof(b.id), bp, (DeleteHashDataFunc)blogpost_render_and_destroy); }