diff --git a/src/api/bot/interfaces/line.ts b/src/api/bot/interfaces/line.ts index bf0882159..6b2ebdec8 100644 --- a/src/api/bot/interfaces/line.ts +++ b/src/api/bot/interfaces/line.ts @@ -121,7 +121,7 @@ class LineBot extends BotCore { actions.push({ type: 'uri', label: 'Webで見る', - uri: `${config.url}/${user.username}` + uri: `${config.url}/@${user.username}` }); this.reply([{ diff --git a/src/api/models/user.ts b/src/api/models/user.ts index 08d7fbb8c..63f79908e 100644 --- a/src/api/models/user.ts +++ b/src/api/models/user.ts @@ -296,7 +296,7 @@ export const packForAp = ( if (!_user) return reject('invalid user arg.'); - const userUrl = `${config.url}/${_user.username}`; + const userUrl = `${config.url}/@${_user.username}`; resolve({ "@context": ["https://www.w3.org/ns/activitystreams", { diff --git a/src/common/othello/ai/back.ts b/src/common/othello/ai/back.ts index 42a256c0b..27dbc3952 100644 --- a/src/common/othello/ai/back.ts +++ b/src/common/othello/ai/back.ts @@ -47,8 +47,8 @@ process.on('message', async msg => { const user = game.user1_id == id ? game.user2 : game.user1; const isSettai = form[0].value === 0; const text = isSettai - ? `?[${user.name}](${conf.url}/${user.username})さんの接待を始めました!` - : `対局を?[${user.name}](${conf.url}/${user.username})さんと始めました! (強さ${form[0].value})`; + ? `?[${user.name}](${conf.url}/@${user.username})さんの接待を始めました!` + : `対局を?[${user.name}](${conf.url}/@${user.username})さんと始めました! (強さ${form[0].value})`; const res = await request.post(`${conf.api_url}/posts/create`, { json: { i, @@ -72,15 +72,15 @@ process.on('message', async msg => { const isSettai = form[0].value === 0; const text = isSettai ? msg.body.winner_id === null - ? `?[${user.name}](${conf.url}/${user.username})さんに接待で引き分けました...` + ? `?[${user.name}](${conf.url}/@${user.username})さんに接待で引き分けました...` : msg.body.winner_id == id - ? `?[${user.name}](${conf.url}/${user.username})さんに接待で勝ってしまいました...` - : `?[${user.name}](${conf.url}/${user.username})さんに接待で負けてあげました♪` + ? `?[${user.name}](${conf.url}/@${user.username})さんに接待で勝ってしまいました...` + : `?[${user.name}](${conf.url}/@${user.username})さんに接待で負けてあげました♪` : msg.body.winner_id === null - ? `?[${user.name}](${conf.url}/${user.username})さんと引き分けました~` + ? `?[${user.name}](${conf.url}/@${user.username})さんと引き分けました~` : msg.body.winner_id == id - ? `?[${user.name}](${conf.url}/${user.username})さんに勝ちました♪` - : `?[${user.name}](${conf.url}/${user.username})さんに負けました...`; + ? `?[${user.name}](${conf.url}/@${user.username})さんに勝ちました♪` + : `?[${user.name}](${conf.url}/@${user.username})さんに負けました...`; await request.post(`${conf.api_url}/posts/create`, { json: { i, diff --git a/src/web/app/ch/tags/channel.tag b/src/web/app/ch/tags/channel.tag index b5c6ce1e6..face824cf 100644 --- a/src/web/app/ch/tags/channel.tag +++ b/src/web/app/ch/tags/channel.tag @@ -165,7 +165,7 @@
{ post.index }: - { post.user.name } + { post.user.name } ID:{ post.user.username } diff --git a/src/web/app/ch/tags/header.tag b/src/web/app/ch/tags/header.tag index 747bec357..901123d63 100644 --- a/src/web/app/ch/tags/header.tag +++ b/src/web/app/ch/tags/header.tag @@ -4,7 +4,7 @@
ログイン(新規登録) - { I.username } + { I.username }