mirror of
https://github.com/acanas/swad-core.git
synced 2024-05-28 20:43:27 +02:00
Version 15.127.1
This commit is contained in:
parent
cdd34d0d7f
commit
31664d159f
|
@ -121,20 +121,21 @@
|
|||
// TODO: When receiving a new post, create first the publishing, then the post
|
||||
// TODO: Change PstCod to PubCod in social_posts, removing AUTO_INCREMENT
|
||||
// TODO: View highlighted social note when clicking in timeline notification
|
||||
// TODO: Mark timeline notifications as removed when unfav/unshared?
|
||||
// TODO: Mark timeline notifications as removed when unfav?
|
||||
|
||||
/*****************************************************************************/
|
||||
/****************************** Public constants *****************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
#define Log_PLATFORM_VERSION "SWAD 15.127 (2016-01-24)"
|
||||
#define Log_PLATFORM_VERSION "SWAD 15.127.1 (2016-01-25)"
|
||||
#define CSS_FILE "swad15.121.7.css"
|
||||
#define JS_FILE "swad15.121.7.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.127: Jan 24, 2016 New function to count the number of @nicknames in a text and store it in social publishing. (194825 lines)
|
||||
Version 15.127.1: Jan 25, 2016 Mark timeline notifications as removed when a social note is unshared. (194831 lines)
|
||||
Version 15.127: Jan 25, 2016 New function to count the number of @nicknames in a text and store it in social publishing. (194825 lines)
|
||||
Version 15.126.1: Jan 24, 2016 Optimization in code to insert links. (194736 lines)
|
||||
Version 15.126: Jan 24, 2016 In any text where URL is replaced by anchor, now @nickname is also replaced to link to user's profile. (194727 lines)
|
||||
2 changes necessary in database:
|
||||
|
|
|
@ -3069,6 +3069,7 @@ static long Soc_UnshareSocialNote (void)
|
|||
extern const char *Txt_The_original_post_no_longer_exists;
|
||||
char Query[256];
|
||||
struct SocialNote SocNot;
|
||||
long PubCod;
|
||||
|
||||
/***** Get data of social note *****/
|
||||
SocNot.NotCod = Soc_GetParamNotCod ();
|
||||
|
@ -3095,6 +3096,11 @@ static long Soc_UnshareSocialNote (void)
|
|||
/***** Update number of times this social note is shared *****/
|
||||
SocNot.NumShared = Soc_UpdateNumTimesANoteHasBeenShared (&SocNot);
|
||||
|
||||
/***** Mark possible notifications on this social note as removed *****/
|
||||
PubCod = Soc_GetPubCodOfOriginalSocialNote (SocNot.NotCod);
|
||||
if (PubCod > 0)
|
||||
Ntf_MarkNotifAsRemoved (Ntf_EVENT_TIMELINE_SHARE,PubCod);
|
||||
|
||||
/***** Show the social note corresponding
|
||||
to the publishing just unshared *****/
|
||||
Soc_WriteSocialNote (&SocNot,
|
||||
|
|
Loading…
Reference in New Issue
Block a user