mirror of https://github.com/acanas/swad-core.git
Version 15.133.5
This commit is contained in:
parent
bd54e30e59
commit
50c786ec5f
|
@ -117,19 +117,18 @@
|
|||
// TODO: Go to forum post (or at least to forum thread) from social timeline and notifications?
|
||||
// TODO: Width of column for data in notifications is too short
|
||||
|
||||
// TODO: Recommendations about users to follow
|
||||
|
||||
/*****************************************************************************/
|
||||
/****************************** Public constants *****************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
#define Log_PLATFORM_VERSION "SWAD 15.133.4 (2016-01-28)"
|
||||
#define Log_PLATFORM_VERSION "SWAD 15.133.5 (2016-01-28)"
|
||||
#define CSS_FILE "swad15.131.2.css"
|
||||
#define JS_FILE "swad15.131.3.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.133.5: Jan 28, 2016 Unlogged users can not view "Who to follow". (195276 lines)
|
||||
Version 15.133.4: Jan 28, 2016 Fixed bug in notifications about timeline events. Reported by Juan Miguel Boyero Corral. (195272 lines)
|
||||
Version 15.133.3: Jan 28, 2016 Changes in query to get users to follow. (195256 lines)
|
||||
1 change necessary in database:
|
||||
|
|
|
@ -128,7 +128,8 @@ char *Prf_GetURLPublicProfile (char *URL,const char *NicknameWithoutArroba)
|
|||
void Prf_RequestUserProfile (void)
|
||||
{
|
||||
/***** Put link to show users to follow *****/
|
||||
Fol_PutLinkWhoToFollow ();
|
||||
if (Gbl.Usrs.Me.Logged)
|
||||
Fol_PutLinkWhoToFollow ();
|
||||
|
||||
/* By default, the nickname is filled with my nickname
|
||||
If no user logged ==> the nickname is empty */
|
||||
|
@ -230,18 +231,21 @@ bool Prf_ShowUserProfile (void)
|
|||
bool IFollowUsr;
|
||||
|
||||
/***** Contextual links *****/
|
||||
if (Gbl.Usrs.Other.UsrDat.UsrCod == Gbl.Usrs.Me.UsrDat.UsrCod) // It's me
|
||||
if (Gbl.Usrs.Me.Logged)
|
||||
{
|
||||
fprintf (Gbl.F.Out,"<div class=\"CONTEXT_MENU\">");
|
||||
Rec_PutLinkToChangeMyInsCtrDpt (); // Put link (form) to change my institution, centre, department...
|
||||
Net_PutLinkToChangeMySocialNetworks (); // Put link (form) to change my social networks
|
||||
Pho_PutLinkToChangeMyPhoto (); // Put link (form) to change my photo
|
||||
Pri_PutLinkToChangeMyPrivacy (); // Put link (form) to change my privacy
|
||||
fprintf (Gbl.F.Out,"</div>");
|
||||
if (Gbl.Usrs.Other.UsrDat.UsrCod == Gbl.Usrs.Me.UsrDat.UsrCod) // It's me
|
||||
{
|
||||
fprintf (Gbl.F.Out,"<div class=\"CONTEXT_MENU\">");
|
||||
Rec_PutLinkToChangeMyInsCtrDpt (); // Put link (form) to change my institution, centre, department...
|
||||
Net_PutLinkToChangeMySocialNetworks (); // Put link (form) to change my social networks
|
||||
Pho_PutLinkToChangeMyPhoto (); // Put link (form) to change my photo
|
||||
Pri_PutLinkToChangeMyPrivacy (); // Put link (form) to change my privacy
|
||||
fprintf (Gbl.F.Out,"</div>");
|
||||
}
|
||||
else
|
||||
/***** Put link to show users to follow *****/
|
||||
Fol_PutLinkWhoToFollow ();
|
||||
}
|
||||
else
|
||||
/***** Put link to show users to follow *****/
|
||||
Fol_PutLinkWhoToFollow ();
|
||||
|
||||
/***** Check if I can see the public profile *****/
|
||||
if (Pri_ShowIsAllowed (Gbl.Usrs.Other.UsrDat.ProfileVisibility,
|
||||
|
|
Loading…
Reference in New Issue