X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fblog%2Fserv_blog.c;h=9040d7af98c1d0384e2f06a834eceb6443813df8;hb=7a9b0685e406cc83597171cc39d008c7e5459ca8;hp=a6513e775cab8f93e5a2aff0ff97cd496b072646;hpb=848934c1722edc208c4df49c571586b72c3fc486;p=citadel.git diff --git a/citadel/modules/blog/serv_blog.c b/citadel/modules/blog/serv_blog.c index a6513e775..9040d7af9 100644 --- a/citadel/modules/blog/serv_blog.c +++ b/citadel/modules/blog/serv_blog.c @@ -28,18 +28,7 @@ #include #include #include - -#if TIME_WITH_SYS_TIME -# include -# include -#else -# if HAVE_SYS_TIME_H -# include -# else -# include -# endif -#endif - +#include #include #include #include @@ -62,7 +51,7 @@ * Pre-save hook for saving a message in a blog room. * (Do we want to only do this for top-level messages?) */ -int blog_upload_beforesave(struct CtdlMessage *msg) { +int blog_upload_beforesave(struct CtdlMessage *msg, recptypes *recp) { /* Only run this hook for blog rooms */ if (CC->room.QRdefaultview != VIEW_BLOG) { @@ -72,7 +61,7 @@ int blog_upload_beforesave(struct CtdlMessage *msg) { /* * If the message doesn't have an EUID, give it one. */ - if (msg->cm_fields[eExclusiveID] == NULL) + if (CM_IsEmpty(msg, eExclusiveID)) { char uuid[SIZ]; generate_uuid(uuid);