diff --git a/app/controllers/api/v1/statuses_controller.rb b/app/controllers/api/v1/statuses_controller.rb index 826d55a6c..9988567fc 100644 --- a/app/controllers/api/v1/statuses_controller.rb +++ b/app/controllers/api/v1/statuses_controller.rb @@ -52,7 +52,7 @@ class Api::V1::StatusesController < Api::BaseController thread = status_params[:in_reply_to_id].blank? ? nil : Status.find(status_params[:in_reply_to_id]) masked = status_params[:status].end_with?('[mask]') sender = masked ? Account.find_local('mask_bot') : current_account - st_text = masked ? ("$#{to_cn(7919**(current_account.id + 1000 * Time.new.day) % 10000000007)}: " + status_params[:status][0..4900]) : status_params[:status] + st_text = masked ? ("$#{to_cn(7919**(current_account.id + 1000 * Time.new.day) % 1000000007)}:\n" + status_params[:status][0..4900]) : status_params[:status] @status = PostStatusService.new.call(sender, text: st_text, diff --git a/app/javascript/styles/thu/diff.scss b/app/javascript/styles/thu/diff.scss index f98e4f6e2..6b4a0bfe1 100644 --- a/app/javascript/styles/thu/diff.scss +++ b/app/javascript/styles/thu/diff.scss @@ -2,14 +2,14 @@ /* Status */ /* Drawer */ body { - background: rgba(73, 58, 99, 1) url(https://www.tsinghua.edu.cn/publish/thu2018/images/footer.jpg) no-repeat fixed; + background: rgba(73, 58, 99, 1) url(https://www.tsinghua.edu.cn/images/footer.jpg) no-repeat fixed; background-size: cover; background-attachment: fixed; background-position: center; height: 100vh !important; } body.theme-thu { - background: rgba(73, 58, 99, 1) url(https://www.tsinghua.edu.cn/publish/thu2018/images/footer.jpg) no-repeat fixed; + background: rgba(73, 58, 99, 1) url(https://www.tsinghua.edu.cn/images/footer.jpg) no-repeat fixed; background-size: cover; background-attachment: fixed; background-position: center; diff --git a/public/auto_comp_email.js b/public/auto_comp_email.js index aec5730bb..090fe2184 100644 --- a/public/auto_comp_email.js +++ b/public/auto_comp_email.js @@ -8,7 +8,7 @@ em.addEventListener("blur", function( event ) { if(ap.style.display != 'none' && em.value) { em.value+=ap.innerText; ap.style.display = 'none'; - alert('注意:清华邮箱收取外部邮件会有至多十分钟的延迟,完成注册后请稍后再查收邮件') + alert('注意:清华邮箱收取外部邮件会有至多十分钟的延迟,完成注册后请稍后再查收邮件。请务必确保邮箱正确,闭社已经遇到了大量无效邮箱(例如漏掉了数字)') } });