diff --git a/sql/cambios.sql b/sql/cambios.sql index 82f689cc1..68e704974 100644 --- a/sql/cambios.sql +++ b/sql/cambios.sql @@ -11391,4 +11391,128 @@ UPDATE sta_notif SET NotifyEvent=18 WHERE NotifyEvent=19; UPDATE usr_data SET NotifNtfEvents = ((NotifNtfEvents & ~0x7FE00) | ((NotifNtfEvents & 0xFFC00) >> 1)); UPDATE usr_data SET EmailNtfEvents = ((EmailNtfEvents & ~0xFFE00) | ((EmailNtfEvents & 0xFFC00) >> 1)); +--------------- + + +OPTIMIZE TABLE IP_prefs; +OPTIMIZE TABLE actions; +OPTIMIZE TABLE actions_MFU; +OPTIMIZE TABLE admin; +OPTIMIZE TABLE ann_seen; + +OPTIMIZE TABLE announcements; +OPTIMIZE TABLE asg_grp; +OPTIMIZE TABLE assignments; +OPTIMIZE TABLE att_events; +OPTIMIZE TABLE att_grp; +OPTIMIZE TABLE att_usr; + +OPTIMIZE TABLE banners; +OPTIMIZE TABLE birthdays_today; +OPTIMIZE TABLE centres; +OPTIMIZE TABLE chat; +OPTIMIZE TABLE clicks_without_photo; +OPTIMIZE TABLE clipboard; +OPTIMIZE TABLE connected; + +OPTIMIZE TABLE countries; +OPTIMIZE TABLE courses; +OPTIMIZE TABLE crs_grp; +OPTIMIZE TABLE crs_grp_types; +OPTIMIZE TABLE crs_grp_usr; +OPTIMIZE TABLE crs_info_read; +OPTIMIZE TABLE crs_info_src; +OPTIMIZE TABLE crs_info_txt; +OPTIMIZE TABLE crs_last; +OPTIMIZE TABLE crs_record_fields; +OPTIMIZE TABLE crs_records; +OPTIMIZE TABLE crs_usr; +OPTIMIZE TABLE crs_usr_requests; + +OPTIMIZE TABLE debug; +OPTIMIZE TABLE deg_types; +OPTIMIZE TABLE degrees; +OPTIMIZE TABLE departments; +OPTIMIZE TABLE exam_announcements; +OPTIMIZE TABLE expanded_folders; + +OPTIMIZE TABLE file_browser_last; +OPTIMIZE TABLE file_browser_size; +OPTIMIZE TABLE file_view; +OPTIMIZE TABLE files; + + +OPTIMIZE TABLE forum_disabled_post; +OPTIMIZE TABLE forum_post; +OPTIMIZE TABLE forum_thr_clip; +OPTIMIZE TABLE forum_thr_read; +OPTIMIZE TABLE forum_thread; + + +OPTIMIZE TABLE hidden_params; +OPTIMIZE TABLE holidays; +OPTIMIZE TABLE imported_groups; +OPTIMIZE TABLE imported_sessions; +OPTIMIZE TABLE imported_students; +OPTIMIZE TABLE institutions; +OPTIMIZE TABLE links; + +OPTIMIZE TABLE mail_domains; +OPTIMIZE TABLE marks_properties; +OPTIMIZE TABLE msg_banned; + +OPTIMIZE TABLE msg_content; +OPTIMIZE TABLE msg_content_deleted; +OPTIMIZE TABLE msg_rcv; +OPTIMIZE TABLE msg_rcv_deleted; +OPTIMIZE TABLE msg_snt; +OPTIMIZE TABLE msg_snt_deleted; + +| notices | +| notices_deleted | +| notif | +| pending_emails | +| pending_passwd | +| places | +| plugins | +| sessions | +| social_comments | +| social_comments_fav | +| social_notes | +| social_notes_fav | +| social_posts | +| social_pubs | +| social_timelines | +| sta_degrees | +| sta_notif | +| surveys | +| svy_answers | +| svy_grp | +| svy_questions | +| svy_users | +| timetable_crs | +| timetable_crs_backup | +| timetable_tut | +| timetable_tut_backup | +| tst_answers | +| tst_config | +| tst_exam_questions | +| tst_exams | +| tst_question_tags | +| tst_questions | +| tst_status | +| tst_tags | +| usr_IDs | +| usr_banned | +| usr_data | +| usr_emails | +| usr_figures | +| usr_follow | +| usr_last | +| usr_nicknames | +| usr_webs | +| ws_keys | ++----------------------+ + + diff --git a/swad_changelog.h b/swad_changelog.h index acf79892f..68ddb0c9c 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -121,13 +121,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 15.134 (2016-01-29)" +#define Log_PLATFORM_VERSION "SWAD 15.134.1 (2016-01-29)" #define CSS_FILE "swad15.134.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.134.1: Jan 29, 2016 Changes in lists of following/followers. (195326 lines) Version 15.134: Jan 29, 2016 Change in menu of social tab. (195328 lines) Version 15.133.8: Jan 29, 2016 Link to request a user's profile. (195328 lines) Version 15.133.7: Jan 28, 2016 Changes in layout of followed/followers. (195288 lines) diff --git a/swad_follow.c b/swad_follow.c index ede7d1ad7..f2be39eff 100644 --- a/swad_follow.c +++ b/swad_follow.c @@ -645,31 +645,28 @@ static void Fol_ShowFollowedOrFollower (const struct UsrData *UsrDat) fprintf (Gbl.F.Out,"" ""); - /***** Put form to go to public profile *****/ - if (Visible && - UsrDat->Nickname[0]) + if (Visible) { + /***** Put form to go to public profile *****/ Act_FormStart (ActSeePubPrf); Usr_PutParamUsrCodEncrypted (UsrDat->EncryptedUsrCod); Act_LinkFormSubmit (Txt_View_public_profile,"DAT"); Usr_RestrictLengthAndWriteName (UsrDat,10); fprintf (Gbl.F.Out,""); Act_FormEnd (); - } - /***** Put form to follow / unfollow *****/ - if (Visible && Gbl.Usrs.Me.Logged) - { - if (Gbl.Usrs.Me.UsrDat.UsrCod == UsrDat->UsrCod) + if (!Gbl.Usrs.Me.Logged || // Not logged + Gbl.Usrs.Me.UsrDat.UsrCod == UsrDat->UsrCod) // It's me + /***** Inactive icon to follow / unfollow *****/ fprintf (Gbl.F.Out,"
" "\"\""" - "
" - "", + "", Gbl.Prefs.IconsURL); else { + /***** Put form to follow / unfollow *****/ if (Fol_CheckUsrIsFollowerOf (Gbl.Usrs.Me.UsrDat.UsrCod,UsrDat->UsrCod)) // I follow user { Act_FormStart (ActUnfUsr);