summaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2018-03-27 12:57:52 +0900
committerGitHub <noreply@github.com>2018-03-27 12:57:52 +0900
commitd0c875c1e0d398cc0939b2ce9fc77aed03909f29 (patch)
tree1c496aab092bea6ff6e14a649082c630fbaf521e /src/api
parentUpdate docs (diff)
parentReplace /:user endpoints with /@:user (diff)
downloadsharkey-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.ts2
-rw-r--r--src/api/models/user.ts2
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", {