summaryrefslogtreecommitdiff
path: root/src/api/models
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/models
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/models')
-rw-r--r--src/api/models/user.ts2
1 files changed, 1 insertions, 1 deletions
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", {