Changeset 36414 for websites/twicli

Show
Ignore:
Timestamp:
01/12/10 00:56:10 (4 years ago)
Author:
NeoCat
Message:

Don't set in-reply-to-status-id if starts with '.'

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • websites/twicli/twicli.html

    r36383 r36414  
    398398        last_in_reply_to_user = in_reply_to_user; 
    399399        last_in_reply_to_status_id = in_reply_to_status_id; 
    400         if (document.frm.status.value.indexOf("@"+in_reply_to_user) < 0) // @ユーザが含まれているときのみ返信先を指定 
    401                 setReplyId(false); 
     400        if (document.frm.status.value.substr(0,1) == "." || document.frm.status.value.indexOf("@"+in_reply_to_user) < 0) 
     401                setReplyId(false); // "."で始まるか"@ユーザ名"が含まれていない時はin_reply_to指定無し 
    402402        callPlugins("post", document.frm.status.value); 
    403403        in_reply_to_user = in_reply_to_status_id = null;