From 4bf00222194d91dc45f495c4323ee9252401fef1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Mon, 18 Jan 2016 10:36:30 +0100 Subject: [PATCH] Version 15.118.1 --- swad_changelog.h | 3 ++- swad_social.c | 8 +++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/swad_changelog.h b/swad_changelog.h index 5922b9834..ef4387cf3 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -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'; diff --git a/swad_social.c b/swad_social.c index 664a7d19c..028ff3bd3 100644 --- a/swad_social.c +++ b/swad_social.c @@ -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; }