diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2018-03-27 12:57:52 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-03-27 12:57:52 +0900 |
| commit | d0c875c1e0d398cc0939b2ce9fc77aed03909f29 (patch) | |
| tree | 1c496aab092bea6ff6e14a649082c630fbaf521e /src/api | |
| parent | Update docs (diff) | |
| parent | Replace /:user endpoints with /@:user (diff) | |
| download | sharkey-d0c875c1e0d398cc0939b2ce9fc77aed03909f29.tar.gz sharkey-d0c875c1e0d398cc0939b2ce9fc77aed03909f29.tar.bz2 sharkey-d0c875c1e0d398cc0939b2ce9fc77aed03909f29.zip | |
Merge pull request #1313 from akihikodaki/key
Replace /:user endpoints with /@:user
Diffstat (limited to 'src/api')
| -rw-r--r-- | src/api/bot/interfaces/line.ts | 2 | ||||
| -rw-r--r-- | src/api/models/user.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/api/bot/interfaces/line.ts b/src/api/bot/interfaces/line.ts index bf08821594..6b2ebdec88 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 08d7fbb8c7..63f79908e3 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", { |