Browse Source

细节

pull/4/head
欧醚 4 years ago
parent
commit
7f54b403de
3 changed files with 4 additions and 4 deletions
  1. +1
    -1
      app/controllers/api/v1/statuses_controller.rb
  2. +2
    -2
      app/javascript/styles/thu/diff.scss
  3. +1
    -1
      public/auto_comp_email.js

+ 1
- 1
app/controllers/api/v1/statuses_controller.rb View File

@ -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)}: class="se">\n" + status_params[:status][0..4900]) : status_params[:status]
@status = PostStatusService.new.call(sender,
text: st_text,

+ 2
- 2
app/javascript/styles/thu/diff.scss View File

@ -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;

+ 1
- 1
public/auto_comp_email.js View File

@ -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('注意:清华邮箱收取外部邮件会有至多十分钟的延迟,完成注册后请稍后再查收邮件。请务必确保邮箱正确,闭社已经遇到了大量无效邮箱(例如漏掉了数字)')
}
});

Loading…
Cancel
Save