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 *****************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
#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 JS_FILE "swad15.117.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.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)
|
||||
3 changes necessary in database:
|
||||
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 NotCod; // Note code
|
||||
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
|
||||
0
|
||||
*/
|
||||
RangePubsToGet.Top = 0; // +Infinite
|
||||
RangePubsToGet.Bottom = 0; // -Infinite
|
||||
switch (WhatToGetFromTimeline)
|
||||
{
|
||||
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 */
|
||||
RangePubsToGet.Top = 0; // +Infinite
|
||||
RangePubsToGet.Bottom = Soc_GetPubCodFromSession ("LastPubCod");
|
||||
break;
|
||||
case Soc_GET_RECENT_TIMELINE: // Get some limited recent publishings
|
||||
/* This is the first query to get initial timeline shown
|
||||
==> no notes yet in current timeline table */
|
||||
RangePubsToGet.Top = 0; // +Infinite
|
||||
RangePubsToGet.Bottom = 0; // -Infinite
|
||||
break;
|
||||
case Soc_GET_ONLY_OLD_PUBS: // Get some limited publishings older than FirstPubCod
|
||||
/* This query is made via AJAX
|
||||
when I click in link to get old publishings */
|
||||
RangePubsToGet.Top = Soc_GetPubCodFromSession ("FirstPubCod");
|
||||
RangePubsToGet.Bottom = 0; // -Infinite
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user