mirror of
https://github.com/acanas/swad-core.git
synced 2024-06-14 04:36:32 +02:00
Version 15.110.6
This commit is contained in:
parent
1d01b63ea7
commit
5cbad0ccdb
|
@ -122,13 +122,14 @@
|
||||||
/****************************** Public constants *****************************/
|
/****************************** 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 CSS_FILE "swad15.110.2.css"
|
||||||
#define JS_FILE "swad15.107.2.js"
|
#define JS_FILE "swad15.107.2.js"
|
||||||
|
|
||||||
// Number of lines (includes comments but not blank lines) has been got with the following command:
|
// 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
|
// 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)
|
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:
|
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));
|
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_SetUniqueId (char UniqueId[Soc_MAX_LENGTH_ID]);
|
||||||
|
|
||||||
|
static void Soc_ClearTimelineForThisSession (void);
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/*********** Show social activity (timeline) of a selected user **************/
|
/*********** 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 SocialPublishing SocPub;
|
||||||
struct SocialNote SocNot;
|
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");
|
NumPubsGot = DB_QuerySELECT (Query,&mysql_res,"can not get timeline");
|
||||||
|
|
||||||
/***** Start frame *****/
|
/***** Start frame *****/
|
||||||
|
@ -2977,3 +2982,17 @@ static void Soc_SetUniqueId (char UniqueId[Soc_MAX_LENGTH_ID])
|
||||||
Gbl.UniqueNameEncrypted,
|
Gbl.UniqueNameEncrypted,
|
||||||
++CountForThisExecution);
|
++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
Block a user