メンションの表記をFull acctに変更する際に@が欠けていたバグの修正

This commit is contained in:
tateisu 2018-08-23 10:25:39 +09:00
parent 22299c53f2
commit 41eb039fc4
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@
</value>
</option>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">

View File

@ -407,7 +407,7 @@ object HTMLDecoder {
if(display_url.startsWith("@") && href != null && Pref.bpMentionFullAcct(App1.pref)) {
// メンションをfull acct にする
val acct = TootAccount.getAcctFromUrl(href)
if( acct!= null) return acct
if( acct!= null) return "@$acct"
}
// ハッシュタグやメンションはURLの短縮表示の対象外
return display_url