mirror of https://github.com/acanas/swad-core.git
Version 20.36.38: Mar 01, 2021 Code refactoring in timeline notifications.
This commit is contained in:
parent
e556a0faa6
commit
220bc5de39
|
@ -553,7 +553,7 @@ enscript -2 --landscape --color --file-align=2 --highlight --line-numbers -o - *
|
||||||
En OpenSWAD:
|
En OpenSWAD:
|
||||||
ps2pdf source.ps destination.pdf
|
ps2pdf source.ps destination.pdf
|
||||||
*/
|
*/
|
||||||
#define Log_PLATFORM_VERSION "SWAD 20.36.37 (2021-03-01)"
|
#define Log_PLATFORM_VERSION "SWAD 20.36.38 (2021-03-01)"
|
||||||
#define CSS_FILE "swad20.33.9.css"
|
#define CSS_FILE "swad20.33.9.css"
|
||||||
#define JS_FILE "swad20.6.2.js"
|
#define JS_FILE "swad20.6.2.js"
|
||||||
/*
|
/*
|
||||||
|
@ -601,6 +601,7 @@ TODO: DNI de un estudiante sale err
|
||||||
TODO: BUG: Cuando un tipo de grupo sólo tiene un grupo, inscribirse es voluntario, el estudiante sólo puede pertenecer a un grupo, y se inscribe en él, debería poder desapuntarse. Ahora no puede.
|
TODO: BUG: Cuando un tipo de grupo sólo tiene un grupo, inscribirse es voluntario, el estudiante sólo puede pertenecer a un grupo, y se inscribe en él, debería poder desapuntarse. Ahora no puede.
|
||||||
TODO: Salvador Romero Cortés: @acanas opción para editar posts
|
TODO: Salvador Romero Cortés: @acanas opción para editar posts
|
||||||
|
|
||||||
|
Version 20.36.38: Mar 01, 2021 Code refactoring in timeline notifications. (305441 lines)
|
||||||
Version 20.36.37: Mar 01, 2021 Query moved to module swad_timeline_database. (305449 lines)
|
Version 20.36.37: Mar 01, 2021 Query moved to module swad_timeline_database. (305449 lines)
|
||||||
Version 20.36.36: Mar 01, 2021 Query moved to module swad_timeline_database. (305429 lines)
|
Version 20.36.36: Mar 01, 2021 Query moved to module swad_timeline_database. (305429 lines)
|
||||||
Version 20.36.35: Mar 01, 2021 Code refactoring in timeline favourites. (305411 lines)
|
Version 20.36.35: Mar 01, 2021 Code refactoring in timeline favourites. (305411 lines)
|
||||||
|
|
|
@ -140,17 +140,13 @@ void TL_Ntf_GetNotifPublication (char SummaryStr[Ntf_MAX_BYTES_SUMMARY + 1],
|
||||||
|
|
||||||
if (Not.NoteType == TL_NOTE_POST)
|
if (Not.NoteType == TL_NOTE_POST)
|
||||||
{
|
{
|
||||||
/***** Get content of post from database *****/
|
/***** Get post from database *****/
|
||||||
if (DB_QuerySELECT (&mysql_res,"can not get the content of a post",
|
if (TL_DB_GetPostByCod (Not.Cod,&mysql_res) == 1) // Result should have a unique row
|
||||||
"SELECT Txt" // row[0]
|
|
||||||
" FROM tl_posts"
|
|
||||||
" WHERE PstCod=%ld",
|
|
||||||
Not.Cod) == 1) // Result should have a unique row
|
|
||||||
{
|
{
|
||||||
/***** Get row *****/
|
/* Get row */
|
||||||
row = mysql_fetch_row (mysql_res);
|
row = mysql_fetch_row (mysql_res);
|
||||||
|
|
||||||
/****** Get content (row[0]) *****/
|
/* Get only text content (row[0]) */
|
||||||
Str_Copy (Content.Txt,row[0],sizeof (Content.Txt) - 1);
|
Str_Copy (Content.Txt,row[0],sizeof (Content.Txt) - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -176,19 +172,14 @@ void TL_Ntf_GetNotifPublication (char SummaryStr[Ntf_MAX_BYTES_SUMMARY + 1],
|
||||||
TL_Not_GetNoteSummary (&Not,SummaryStr);
|
TL_Not_GetNoteSummary (&Not,SummaryStr);
|
||||||
break;
|
break;
|
||||||
case TL_Pub_COMMENT_TO_NOTE:
|
case TL_Pub_COMMENT_TO_NOTE:
|
||||||
/***** Get content of post from database *****/
|
/***** Get content of comment from database *****/
|
||||||
if (DB_QuerySELECT (&mysql_res,"can not get the content"
|
if (TL_DB_GetDataOfCommByCod (Pub.PubCod,&mysql_res) == 1) // Result should have a unique row
|
||||||
" of a comment to a note",
|
|
||||||
"SELECT Txt" // row[0]
|
|
||||||
" FROM tl_comments"
|
|
||||||
" WHERE PubCod=%ld",
|
|
||||||
Pub.PubCod) == 1) // Result should have a unique row
|
|
||||||
{
|
{
|
||||||
/***** Get row *****/
|
/* Get row */
|
||||||
row = mysql_fetch_row (mysql_res);
|
row = mysql_fetch_row (mysql_res);
|
||||||
|
|
||||||
/****** Get content (row[0]) *****/
|
/* Get only text content (row[4]) */
|
||||||
Str_Copy (Content.Txt,row[0],sizeof (Content.Txt) - 1);
|
Str_Copy (Content.Txt,row[4],sizeof (Content.Txt) - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/***** Free structure that stores the query result *****/
|
/***** Free structure that stores the query result *****/
|
||||||
|
|
Loading…
Reference in New Issue