mirror of https://github.com/acanas/swad-core.git
Version 20.36.8: Feb 27, 2021 Function moved to module swad_timeline_database.
This commit is contained in:
parent
443ecfb4df
commit
07951c4740
|
@ -553,7 +553,7 @@ enscript -2 --landscape --color --file-align=2 --highlight --line-numbers -o - *
|
|||
En OpenSWAD:
|
||||
ps2pdf source.ps destination.pdf
|
||||
*/
|
||||
#define Log_PLATFORM_VERSION "SWAD 20.36.6 (2021-02-07)"
|
||||
#define Log_PLATFORM_VERSION "SWAD 20.36.8 (2021-02-07)"
|
||||
#define CSS_FILE "swad20.33.9.css"
|
||||
#define JS_FILE "swad20.6.2.js"
|
||||
/*
|
||||
|
@ -601,7 +601,8 @@ 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: Salvador Romero Cortés: @acanas opción para editar posts
|
||||
|
||||
Version 20.36.7: Feb 27, 2021 Query moved to module swad_timeline_database. (? lines)
|
||||
Version 20.36.8: Feb 27, 2021 Function moved to module swad_timeline_database. (305215 lines)
|
||||
Version 20.36.7: Feb 27, 2021 Query moved to module swad_timeline_database. (305212 lines)
|
||||
Version 20.36.6: Feb 27, 2021 Queries moved to module swad_timeline_database. (305195 lines)
|
||||
Version 20.36.5: Feb 26, 2021 Queries moved to module swad_timeline_database. (305179 lines)
|
||||
Version 20.36.4: Feb 26, 2021 Query moved to module swad_timeline_database. (305156 lines)
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
#include "swad_RSS.h"
|
||||
#include "swad_string.h"
|
||||
#include "swad_timeline.h"
|
||||
#include "swad_timeline_note.h"
|
||||
#include "swad_timeline_database.h"
|
||||
|
||||
/*****************************************************************************/
|
||||
/************** External global variables from others modules ****************/
|
||||
|
@ -498,7 +498,7 @@ void ExaAnn_RemoveExamAnn1 (void)
|
|||
Ntf_MarkNotifAsRemoved (Ntf_EVENT_EXAM_ANNOUNCEMENT,ExaCod);
|
||||
|
||||
/***** Mark possible social note as unavailable *****/
|
||||
TL_Not_MarkNoteAsUnavailable (TL_NOTE_EXAM_ANNOUNCEMENT,ExaCod);
|
||||
TL_DB_MarkNoteAsUnavailable (TL_NOTE_EXAM_ANNOUNCEMENT,ExaCod);
|
||||
|
||||
/***** Update RSS of current course *****/
|
||||
RSS_UpdateRSSFileForACrs (&Gbl.Hierarchy.Crs);
|
||||
|
|
|
@ -52,7 +52,7 @@
|
|||
#include "swad_profile.h"
|
||||
#include "swad_role.h"
|
||||
#include "swad_timeline.h"
|
||||
#include "swad_timeline_note.h"
|
||||
#include "swad_timeline_database.h"
|
||||
|
||||
/*****************************************************************************/
|
||||
/************** External global variables from others modules ****************/
|
||||
|
@ -4084,7 +4084,7 @@ void For_RemovePost (void)
|
|||
{
|
||||
case For_FORUM_GLOBAL_USRS:
|
||||
case For_FORUM__SWAD__USRS:
|
||||
TL_Not_MarkNoteAsUnavailable (TL_NOTE_FORUM_POST,Forums.PstCod);
|
||||
TL_DB_MarkNoteAsUnavailable (TL_NOTE_FORUM_POST,Forums.PstCod);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
#include "swad_parameter.h"
|
||||
#include "swad_RSS.h"
|
||||
#include "swad_timeline.h"
|
||||
#include "swad_timeline_note.h"
|
||||
#include "swad_timeline_database.h"
|
||||
|
||||
/*****************************************************************************/
|
||||
/************** External global variables from others modules ****************/
|
||||
|
@ -340,7 +340,7 @@ void Not_RemoveNotice (void)
|
|||
Ntf_MarkNotifAsRemoved (Ntf_EVENT_NOTICE,NotCod);
|
||||
|
||||
/***** Mark possible social note as unavailable *****/
|
||||
TL_Not_MarkNoteAsUnavailable (TL_NOTE_NOTICE,NotCod);
|
||||
TL_DB_MarkNoteAsUnavailable (TL_NOTE_NOTICE,NotCod);
|
||||
|
||||
/***** Update RSS of current course *****/
|
||||
RSS_UpdateRSSFileForACrs (&Gbl.Hierarchy.Crs);
|
||||
|
|
|
@ -70,6 +70,19 @@ long TL_DB_CreateNewNote (TL_Not_NoteType_t NoteType,long Cod,
|
|||
HieCod); // Where in hierarchy
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
/************************* Mark a note as unavailable ************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
void TL_DB_MarkNoteAsUnavailable (TL_Not_NoteType_t NoteType,long Cod)
|
||||
{
|
||||
/***** Mark the note as unavailable *****/
|
||||
DB_QueryUPDATE ("can not mark note as unavailable",
|
||||
"UPDATE tl_notes SET Unavailable='Y'"
|
||||
" WHERE NoteType=%u AND Cod=%ld",
|
||||
(unsigned) NoteType,Cod);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
/**** Insert note in temporary tables used to not get notes already shown ****/
|
||||
/*****************************************************************************/
|
||||
|
|
|
@ -46,6 +46,7 @@
|
|||
/* Notes */
|
||||
long TL_DB_CreateNewNote (TL_Not_NoteType_t NoteType,long Cod,
|
||||
long PublisherCod,long HieCod);
|
||||
void TL_DB_MarkNoteAsUnavailable (TL_Not_NoteType_t NoteType,long Cod);
|
||||
void TL_DB_InsertNoteInJustRetrievedNotes (long NotCod);
|
||||
void TL_DB_InsertNoteInVisibleTimeline (long NotCod);
|
||||
|
||||
|
|
|
@ -843,7 +843,8 @@ void TL_Not_StoreAndPublishNote (TL_Not_NoteType_t NoteType,long Cod)
|
|||
TL_Not_StoreAndPublishNoteInternal (NoteType,Cod,&Pub);
|
||||
}
|
||||
|
||||
void TL_Not_StoreAndPublishNoteInternal (TL_Not_NoteType_t NoteType,long Cod,struct TL_Pub_Publication *Pub)
|
||||
void TL_Not_StoreAndPublishNoteInternal (TL_Not_NoteType_t NoteType,long Cod,
|
||||
struct TL_Pub_Publication *Pub)
|
||||
{
|
||||
long HieCod; // Hierarchy code (institution/centre/degree/course)
|
||||
|
||||
|
@ -879,19 +880,6 @@ void TL_Not_StoreAndPublishNoteInternal (TL_Not_NoteType_t NoteType,long Cod,str
|
|||
TL_Pub_PublishPubInTimeline (Pub);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
/************************* Mark a note as unavailable ************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
void TL_Not_MarkNoteAsUnavailable (TL_Not_NoteType_t NoteType,long Cod)
|
||||
{
|
||||
/***** Mark the note as unavailable *****/
|
||||
DB_QueryUPDATE ("can not mark note as unavailable",
|
||||
"UPDATE tl_notes SET Unavailable='Y'"
|
||||
" WHERE NoteType=%u AND Cod=%ld",
|
||||
(unsigned) NoteType,Cod);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
/****************** Mark notes of one file as unavailable ********************/
|
||||
/*****************************************************************************/
|
||||
|
@ -947,7 +935,7 @@ void TL_Not_MarkNoteOneFileAsUnavailable (const char *Path)
|
|||
default:
|
||||
return;
|
||||
}
|
||||
TL_Not_MarkNoteAsUnavailable (NoteType,FilCod);
|
||||
TL_DB_MarkNoteAsUnavailable (NoteType,FilCod);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
|
|
@ -97,8 +97,8 @@ void TL_Not_GetNoteSummary (const struct TL_Not_Note *Not,
|
|||
char SummaryStr[Ntf_MAX_BYTES_SUMMARY + 1]);
|
||||
|
||||
void TL_Not_StoreAndPublishNote (TL_Not_NoteType_t NoteType,long Cod);
|
||||
void TL_Not_StoreAndPublishNoteInternal (TL_Not_NoteType_t NoteType,long Cod,struct TL_Pub_Publication *Pub);
|
||||
void TL_Not_MarkNoteAsUnavailable (TL_Not_NoteType_t NoteType,long Cod);
|
||||
void TL_Not_StoreAndPublishNoteInternal (TL_Not_NoteType_t NoteType,long Cod,
|
||||
struct TL_Pub_Publication *Pub);
|
||||
void TL_Not_MarkNoteOneFileAsUnavailable (const char *Path);
|
||||
void TL_Not_MarkNotesChildrenOfFolderAsUnavailable (const char *Path);
|
||||
|
||||
|
|
Loading…
Reference in New Issue