mirror of
https://github.com/acanas/swad-core.git
synced 2024-09-22 00:00:40 +02:00
Version 15.118.1
This commit is contained in:
parent
4e897e6d1c
commit
4bf0022219
|
@ -122,13 +122,14 @@
|
||||||
/****************************** Public constants *****************************/
|
/****************************** Public constants *****************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
#define Log_PLATFORM_VERSION "SWAD 15.118 (2016-01-18)"
|
#define Log_PLATFORM_VERSION "SWAD 15.118.1 (2016-01-18)"
|
||||||
#define CSS_FILE "swad15.117.css"
|
#define CSS_FILE "swad15.117.css"
|
||||||
#define JS_FILE "swad15.117.js"
|
#define JS_FILE "swad15.117.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.118.1: Jan 18, 2016 Fixed bugs in social timeline. (192966 lines)
|
||||||
Version 15.118: Jan 18, 2016 Change in privacy options (new value "unknown"). (192967 lines)
|
Version 15.118: Jan 18, 2016 Change in privacy options (new value "unknown"). (192967 lines)
|
||||||
3 changes necessary in database:
|
3 changes necessary in database:
|
||||||
ALTER TABLE usr_data CHANGE COLUMN PhotoVisibility PhotoVisibility ENUM('unknown','user','course','system','world') NOT NULL DEFAULT 'unknown';
|
ALTER TABLE usr_data CHANGE COLUMN PhotoVisibility PhotoVisibility ENUM('unknown','user','course','system','world') NOT NULL DEFAULT 'unknown';
|
||||||
|
|
|
@ -187,7 +187,7 @@ struct SocialComment
|
||||||
long UsrCod;
|
long UsrCod;
|
||||||
long NotCod; // Note code
|
long NotCod; // Note code
|
||||||
time_t DateTimeUTC;
|
time_t DateTimeUTC;
|
||||||
char Content[Cns_MAX_BYTES_LONG_TEXT];
|
char Content[Cns_MAX_BYTES_LONG_TEXT+1];
|
||||||
};
|
};
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
@ -566,24 +566,22 @@ static void Soc_BuildQueryToGetTimeline (Soc_TimelineUsrOrGbl_t TimelineUsrOrGbl
|
||||||
|_____| 1
|
|_____| 1
|
||||||
0
|
0
|
||||||
*/
|
*/
|
||||||
|
RangePubsToGet.Top = 0; // +Infinite
|
||||||
|
RangePubsToGet.Bottom = 0; // -Infinite
|
||||||
switch (WhatToGetFromTimeline)
|
switch (WhatToGetFromTimeline)
|
||||||
{
|
{
|
||||||
case Soc_GET_ONLY_NEW_PUBS: // Get the publishings (without limit) newer than LastPubCod
|
case Soc_GET_ONLY_NEW_PUBS: // Get the publishings (without limit) newer than LastPubCod
|
||||||
/* This query is made via AJAX automatically from time to time */
|
/* This query is made via AJAX automatically from time to time */
|
||||||
RangePubsToGet.Top = 0; // +Infinite
|
|
||||||
RangePubsToGet.Bottom = Soc_GetPubCodFromSession ("LastPubCod");
|
RangePubsToGet.Bottom = Soc_GetPubCodFromSession ("LastPubCod");
|
||||||
break;
|
break;
|
||||||
case Soc_GET_RECENT_TIMELINE: // Get some limited recent publishings
|
case Soc_GET_RECENT_TIMELINE: // Get some limited recent publishings
|
||||||
/* This is the first query to get initial timeline shown
|
/* This is the first query to get initial timeline shown
|
||||||
==> no notes yet in current timeline table */
|
==> no notes yet in current timeline table */
|
||||||
RangePubsToGet.Top = 0; // +Infinite
|
|
||||||
RangePubsToGet.Bottom = 0; // -Infinite
|
|
||||||
break;
|
break;
|
||||||
case Soc_GET_ONLY_OLD_PUBS: // Get some limited publishings older than FirstPubCod
|
case Soc_GET_ONLY_OLD_PUBS: // Get some limited publishings older than FirstPubCod
|
||||||
/* This query is made via AJAX
|
/* This query is made via AJAX
|
||||||
when I click in link to get old publishings */
|
when I click in link to get old publishings */
|
||||||
RangePubsToGet.Top = Soc_GetPubCodFromSession ("FirstPubCod");
|
RangePubsToGet.Top = Soc_GetPubCodFromSession ("FirstPubCod");
|
||||||
RangePubsToGet.Bottom = 0; // -Infinite
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user