mirror of https://github.com/acanas/swad-core.git
Version 15.110.6
This commit is contained in:
parent
1d01b63ea7
commit
5cbad0ccdb
|
@ -122,13 +122,14 @@
|
|||
/****************************** Public constants *****************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
#define Log_PLATFORM_VERSION "SWAD 15.110.5 (2016-01-12)"
|
||||
#define Log_PLATFORM_VERSION "SWAD 15.110.6 (2016-01-12)"
|
||||
#define CSS_FILE "swad15.110.2.css"
|
||||
#define JS_FILE "swad15.107.2.js"
|
||||
|
||||
// Number of lines (includes comments but not blank lines) has been got with the following command:
|
||||
// nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*.h sql/swad*.sql | tail -1
|
||||
/*
|
||||
Version 15.110.6: Jan 12, 2016 Social timeline for this session in database is cleared when timeline is reloaded. (192303 lines)
|
||||
Version 15.110.5: Jan 12, 2016 New database table used to store social notes already present in every timeline. (192288 lines)
|
||||
1 change necessary in database:
|
||||
CREATE TABLE IF NOT EXISTS social_timelines (SessionId CHAR(43) NOT NULL,NotCod BIGINT NOT NULL,UNIQUE INDEX(SessionId,NotCod));
|
||||
|
|
|
@ -276,6 +276,8 @@ static void Soc_ResetSocialComment (struct SocialComment *SocCom);
|
|||
|
||||
static void Soc_SetUniqueId (char UniqueId[Soc_MAX_LENGTH_ID]);
|
||||
|
||||
static void Soc_ClearTimelineForThisSession (void);
|
||||
|
||||
/*****************************************************************************/
|
||||
/*********** Show social activity (timeline) of a selected user **************/
|
||||
/*****************************************************************************/
|
||||
|
@ -518,7 +520,10 @@ static void Soc_ShowTimeline (const char *Query,const char *Title)
|
|||
struct SocialPublishing SocPub;
|
||||
struct SocialNote SocNot;
|
||||
|
||||
/***** Get timeline from database *****/
|
||||
/***** Clear timeline for this session in database *****/
|
||||
Soc_ClearTimelineForThisSession ();
|
||||
|
||||
/***** Get publishings from database *****/
|
||||
NumPubsGot = DB_QuerySELECT (Query,&mysql_res,"can not get timeline");
|
||||
|
||||
/***** Start frame *****/
|
||||
|
@ -2977,3 +2982,17 @@ static void Soc_SetUniqueId (char UniqueId[Soc_MAX_LENGTH_ID])
|
|||
Gbl.UniqueNameEncrypted,
|
||||
++CountForThisExecution);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
/************* Clear social timeline for this session in database ************/
|
||||
/*****************************************************************************/
|
||||
|
||||
static void Soc_ClearTimelineForThisSession (void)
|
||||
{
|
||||
char Query[128];
|
||||
|
||||
/***** Remove social timeline for this session *****/
|
||||
sprintf (Query,"DELETE FROM social_timelines WHERE SessionId='%s'",
|
||||
Gbl.Session.Id);
|
||||
DB_QueryDELETE (Query,"can not remove social timeline");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue