mirror of
https://github.com/acanas/swad-core.git
synced 2024-06-30 12:27:05 +02:00
Version 15.113.12
This commit is contained in:
parent
a55527c9b1
commit
f947f633cd
|
@ -124,13 +124,14 @@
|
||||||
/****************************** Public constants *****************************/
|
/****************************** Public constants *****************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
#define Log_PLATFORM_VERSION "SWAD 15.113.11 (2016-01-15)"
|
#define Log_PLATFORM_VERSION "SWAD 15.113.12 (2016-01-15)"
|
||||||
#define CSS_FILE "swad15.113.8.css"
|
#define CSS_FILE "swad15.113.8.css"
|
||||||
#define JS_FILE "swad15.113.8.js"
|
#define JS_FILE "swad15.113.8.js"
|
||||||
|
|
||||||
// Number of lines (includes comments but not blank lines) has been got with the following command:
|
// 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
|
// nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*.h sql/swad*.sql | tail -1
|
||||||
/*
|
/*
|
||||||
|
Version 15.113.12:Jan 15, 2016 When a new social post is commented, shared or unshared, fade its background. (192807 lines)
|
||||||
Version 15.113.11:Jan 15, 2016 When a new social post is received, fade its background. (192803 lines)
|
Version 15.113.11:Jan 15, 2016 When a new social post is received, fade its background. (192803 lines)
|
||||||
Version 15.113.10:Jan 15, 2016 When a social note is not available, the button to comment is disabled.
|
Version 15.113.10:Jan 15, 2016 When a social note is not available, the button to comment is disabled.
|
||||||
Fixed bug receiving a comment to a social note. (192781 lines)
|
Fixed bug receiving a comment to a social note. (192781 lines)
|
||||||
|
|
|
@ -281,7 +281,7 @@ static long Soc_GetParamComCod (void);
|
||||||
static void Soc_ReceiveComment (void);
|
static void Soc_ReceiveComment (void);
|
||||||
static bool Soc_CheckIfICanCommentNote (long NotCod);
|
static bool Soc_CheckIfICanCommentNote (long NotCod);
|
||||||
|
|
||||||
static void Soc_ShareSocialNote (void);
|
static long Soc_ShareSocialNote (void);
|
||||||
static void Soc_UnshareSocialPublishing (void);
|
static void Soc_UnshareSocialPublishing (void);
|
||||||
static void Soc_UnshareASocialPublishingFromDB (struct SocialNote *SocNot);
|
static void Soc_UnshareASocialPublishingFromDB (struct SocialNote *SocNot);
|
||||||
|
|
||||||
|
@ -1773,7 +1773,7 @@ void Soc_ReceiveSocialPostUsr (void)
|
||||||
// Returns the code of the social note just created
|
// Returns the code of the social note just created
|
||||||
static long Soc_ReceiveSocialPost (void)
|
static long Soc_ReceiveSocialPost (void)
|
||||||
{
|
{
|
||||||
extern const char *Txt_SOCIAL_PUBLISHING_Published;
|
// extern const char *Txt_SOCIAL_PUBLISHING_Published;
|
||||||
char Content[Cns_MAX_BYTES_LONG_TEXT+1];
|
char Content[Cns_MAX_BYTES_LONG_TEXT+1];
|
||||||
char Query[128+Cns_MAX_BYTES_LONG_TEXT];
|
char Query[128+Cns_MAX_BYTES_LONG_TEXT];
|
||||||
long PstCod;
|
long PstCod;
|
||||||
|
@ -1795,7 +1795,7 @@ static long Soc_ReceiveSocialPost (void)
|
||||||
NotCod = Soc_StoreAndPublishSocialNote (Soc_NOTE_SOCIAL_POST,PstCod);
|
NotCod = Soc_StoreAndPublishSocialNote (Soc_NOTE_SOCIAL_POST,PstCod);
|
||||||
|
|
||||||
/***** Message of success *****/
|
/***** Message of success *****/
|
||||||
Lay_ShowAlert (Lay_SUCCESS,Txt_SOCIAL_PUBLISHING_Published);
|
// Lay_ShowAlert (Lay_SUCCESS,Txt_SOCIAL_PUBLISHING_Published);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
NotCod = -1L;
|
NotCod = -1L;
|
||||||
|
@ -2292,7 +2292,7 @@ void Soc_ReceiveCommentUsr (void)
|
||||||
|
|
||||||
static void Soc_ReceiveComment (void)
|
static void Soc_ReceiveComment (void)
|
||||||
{
|
{
|
||||||
extern const char *Txt_SOCIAL_PUBLISHING_Published;
|
// extern const char *Txt_SOCIAL_PUBLISHING_Published;
|
||||||
extern const char *Txt_The_original_post_no_longer_exists;
|
extern const char *Txt_The_original_post_no_longer_exists;
|
||||||
char Content[Cns_MAX_BYTES_LONG_TEXT+1];
|
char Content[Cns_MAX_BYTES_LONG_TEXT+1];
|
||||||
char Query[128+Cns_MAX_BYTES_LONG_TEXT];
|
char Query[128+Cns_MAX_BYTES_LONG_TEXT];
|
||||||
|
@ -2329,7 +2329,7 @@ static void Soc_ReceiveComment (void)
|
||||||
DB_QueryINSERT (Query,"can not store comment content");
|
DB_QueryINSERT (Query,"can not store comment content");
|
||||||
|
|
||||||
/***** Message of success *****/
|
/***** Message of success *****/
|
||||||
Lay_ShowAlert (Lay_SUCCESS,Txt_SOCIAL_PUBLISHING_Published);
|
// Lay_ShowAlert (Lay_SUCCESS,Txt_SOCIAL_PUBLISHING_Published);
|
||||||
|
|
||||||
/***** Show the social note just commented *****/
|
/***** Show the social note just commented *****/
|
||||||
Soc_WriteSocialNote (&SocNot,NULL,true,true);
|
Soc_WriteSocialNote (&SocNot,NULL,true,true);
|
||||||
|
@ -2377,15 +2377,19 @@ static bool Soc_CheckIfICanCommentNote (long NotCod)
|
||||||
|
|
||||||
void Soc_ShareSocialNoteGbl (void)
|
void Soc_ShareSocialNoteGbl (void)
|
||||||
{
|
{
|
||||||
|
long NotCod;
|
||||||
|
|
||||||
/***** Share social note *****/
|
/***** Share social note *****/
|
||||||
Soc_ShareSocialNote ();
|
NotCod = Soc_ShareSocialNote ();
|
||||||
|
|
||||||
/***** Write updated timeline after sharing (global) *****/
|
/***** Write updated timeline after sharing (global) *****/
|
||||||
Soc_ShowTimelineGbl ();
|
Soc_ShowTimelineGblHighlightingNot (NotCod);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Soc_ShareSocialNoteUsr (void)
|
void Soc_ShareSocialNoteUsr (void)
|
||||||
{
|
{
|
||||||
|
long NotCod;
|
||||||
|
|
||||||
/***** Get user whom profile is displayed *****/
|
/***** Get user whom profile is displayed *****/
|
||||||
Usr_GetParamOtherUsrCodEncryptedAndGetUsrData ();
|
Usr_GetParamOtherUsrCodEncryptedAndGetUsrData ();
|
||||||
|
|
||||||
|
@ -2396,18 +2400,18 @@ void Soc_ShareSocialNoteUsr (void)
|
||||||
fprintf (Gbl.F.Out,"<section id=\"timeline\">");
|
fprintf (Gbl.F.Out,"<section id=\"timeline\">");
|
||||||
|
|
||||||
/***** Share social note *****/
|
/***** Share social note *****/
|
||||||
Soc_ShareSocialNote ();
|
NotCod = Soc_ShareSocialNote ();
|
||||||
|
|
||||||
/***** Write updated timeline after sharing (user) *****/
|
/***** Write updated timeline after sharing (user) *****/
|
||||||
Soc_ShowTimelineUsr ();
|
Soc_ShowTimelineUsrHighlightingNot (NotCod);
|
||||||
|
|
||||||
/***** End section *****/
|
/***** End section *****/
|
||||||
fprintf (Gbl.F.Out,"</section>");
|
fprintf (Gbl.F.Out,"</section>");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void Soc_ShareSocialNote (void)
|
static long Soc_ShareSocialNote (void)
|
||||||
{
|
{
|
||||||
extern const char *Txt_SOCIAL_PUBLISHING_Shared;
|
// extern const char *Txt_SOCIAL_PUBLISHING_Shared;
|
||||||
extern const char *Txt_The_original_post_no_longer_exists;
|
extern const char *Txt_The_original_post_no_longer_exists;
|
||||||
struct SocialNote SocNot;
|
struct SocialNote SocNot;
|
||||||
struct SocialPublishing SocPub;
|
struct SocialPublishing SocPub;
|
||||||
|
@ -2444,14 +2448,16 @@ static void Soc_ShareSocialNote (void)
|
||||||
Soc_UpdateNumTimesANoteHasBeenShared (&SocNot);
|
Soc_UpdateNumTimesANoteHasBeenShared (&SocNot);
|
||||||
|
|
||||||
/***** Message of success *****/
|
/***** Message of success *****/
|
||||||
Lay_ShowAlert (Lay_SUCCESS,Txt_SOCIAL_PUBLISHING_Shared);
|
// Lay_ShowAlert (Lay_SUCCESS,Txt_SOCIAL_PUBLISHING_Shared);
|
||||||
|
|
||||||
/***** Show the social note just shared *****/
|
/***** Show the social note just shared *****/
|
||||||
Soc_WriteSocialNote (&SocNot,NULL,true,true);
|
// Soc_WriteSocialNote (&SocNot,NULL,true,true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
Lay_ShowAlert (Lay_WARNING,Txt_The_original_post_no_longer_exists);
|
Lay_ShowAlert (Lay_WARNING,Txt_The_original_post_no_longer_exists);
|
||||||
|
|
||||||
|
return SocNot.NotCod;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user