Skip to content

Commit

Permalink
コード整理。
Browse files Browse the repository at this point in the history
  • Loading branch information
satopian committed Nov 28, 2024
1 parent e469453 commit 92416b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion petitnote/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@

//投稿処理
function post(){
global $max_log,$max_res,$max_kb,$use_aikotoba,$use_upload,$use_res_upload,$use_diary,$max_w,$max_h,$mark_sensitive_image;
global $max_log,$max_res,$use_aikotoba,$use_upload,$use_res_upload,$use_diary,$max_w,$max_h,$mark_sensitive_image;
global $allow_comments_only,$res_max_w,$res_max_h,$name_input_required,$max_com,$max_px,$sage_all,$en,$only_admin_can_reply;
global $usercode,$use_url_input_field;

Expand Down
3 changes: 2 additions & 1 deletion petitnote/misskey_note.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ public static function create_misskey_note_sessiondata(){
if($hide_content && !$cw){
return error($en?"Content warning field is empty.":"注釈がありません。");
}
check_AsyncRequest();
check_AsyncRequest();//Asyncリクエストの時は処理を中断

$cw = $hide_content ? $cw : null;

$tool=switch_tool($abbr_toolname);
Expand Down

0 comments on commit 92416b1

Please sign in to comment.