diff --git a/swad_changelog.h b/swad_changelog.h index 9d7b3241f..947e85a8c 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -490,14 +490,16 @@ enscript -2 --landscape --color --file-align=2 --highlight --line-numbers -o - * En OpenSWAD: ps2pdf source.ps destination.pdf */ -#define Log_PLATFORM_VERSION "SWAD 19.83 (2019-12-04)" +#define Log_PLATFORM_VERSION "SWAD 19.83.1 (2019-12-05)" #define CSS_FILE "swad19.82.3.css" #define JS_FILE "swad19.70.js" /* // TODO: Hacer un nuevo rol en los TFG: tutor externo (profesor de áreas no vinculadas con el centro, profesionales de empresas, etc.) // TODO: Impedir la creación y edición de proyectos si no son editables. // TODO: En cada juego, poder listar los resultados en una tabla como la de resultados globales - +// TODO: Arreglar bug en timeline: al enviar un comentario a un post en el timeline personal, se muestra el timeline global. + * + Version 19.83.1: Dec 05, 2019 Fixed bug in user's timeline. (247827 lines) Version 19.83: Dec 04, 2019 Removed API function playMatch. API function getMatchStatus finished. (247823 lines) Version 19.82.3: Dec 04, 2019 Code refactoring in matches. diff --git a/swad_config.h b/swad_config.h index 97ee345f7..9d548aa11 100644 --- a/swad_config.h +++ b/swad_config.h @@ -28,9 +28,9 @@ /** Uncomment one of the following installations of SWAD or create your own **/ /*****************************************************************************/ -//#define LOCALHOST_UBUNTU // Comment this line if not applicable +#define LOCALHOST_UBUNTU // Comment this line if not applicable //#define OPENSWAD_ORG // Comment this line if not applicable -#define SWAD_UGR_ES // Comment this line if not applicable +//#define SWAD_UGR_ES // Comment this line if not applicable //#define SWADBERRY_UGR_ES // Comment this line if not applicable /*****************************************************************************/ diff --git a/swad_layout.c b/swad_layout.c index 9171a9bf2..911d484d7 100644 --- a/swad_layout.c +++ b/swad_layout.c @@ -801,10 +801,7 @@ static void Lay_WriteScriptParamsAJAX (void) /* In all the actions related to view or editing user's timeline ==> put parameters used by AJAX */ if (Gbl.Usrs.Other.UsrDat.UsrCod <= 0) - Usr_GetParamOtherUsrCodEncryptedAndGetListIDs (); - if (!Gbl.Usrs.Other.UsrDat.Nickname[0]) - Nck_GetNicknameFromUsrCod (Gbl.Usrs.Other.UsrDat.UsrCod, - Gbl.Usrs.Other.UsrDat.Nickname); + Usr_GetParamOtherUsrCodEncrypted (&Gbl.Usrs.Other.UsrDat); // Refresh parameters HTM_TxtF ("var RefreshParamNxtActOldPub = \"act=%ld\";\n" "var RefreshParamUsr = \"OtherUsrCod=%s\";\n", diff --git a/swad_timeline.c b/swad_timeline.c index 117e437f0..21d638fba 100644 --- a/swad_timeline.c +++ b/swad_timeline.c @@ -2426,6 +2426,8 @@ static void TL_PutTextarea (const char *Placeholder,const char *ClassTextArea) void TL_ReceivePostUsr (void) { + long NotCod; + /***** Get user whom profile is displayed *****/ Usr_GetParamOtherUsrCodEncryptedAndGetUsrData (); @@ -2437,7 +2439,8 @@ void TL_ReceivePostUsr (void) /***** Receive and store post, and write updated timeline after publication (user) *****/ - TL_ReceivePostGbl (); + NotCod = TL_ReceivePost (); + TL_ShowTimelineUsrHighlightingNot (NotCod); /***** End section *****/ HTM_SECTION_End (); @@ -3350,6 +3353,8 @@ static long TL_GetParamPubCod (void) void TL_ReceiveCommentUsr (void) { + long NotCod; + /***** Get user whom profile is displayed *****/ Usr_GetParamOtherUsrCodEncryptedAndGetUsrData (); @@ -3361,7 +3366,8 @@ void TL_ReceiveCommentUsr (void) /***** Receive comment in a note and write updated timeline after commenting (user) *****/ - TL_ReceiveCommentGbl (); + NotCod = TL_ReceiveComment (); + TL_ShowTimelineUsrHighlightingNot (NotCod); /***** End section *****/ HTM_SECTION_End ();