diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-04-17 14:32:59 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-04-17 14:32:59 +0900 |
| commit | 0ede390fefb4aae460deccc09755af85e5af6002 (patch) | |
| tree | a3d86468bd6ef53e206382a2812eb74e2039ccc5 /src/remote/activitypub/renderer | |
| parent | Fix #4721 Fix #4722 (diff) | |
| download | sharkey-0ede390fefb4aae460deccc09755af85e5af6002.tar.gz sharkey-0ede390fefb4aae460deccc09755af85e5af6002.tar.bz2 sharkey-0ede390fefb4aae460deccc09755af85e5af6002.zip | |
Refactor
Diffstat (limited to 'src/remote/activitypub/renderer')
| -rw-r--r-- | src/remote/activitypub/renderer/person.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/remote/activitypub/renderer/person.ts b/src/remote/activitypub/renderer/person.ts index 3fb164ef4e..efe52cdefb 100644 --- a/src/remote/activitypub/renderer/person.ts +++ b/src/remote/activitypub/renderer/person.ts @@ -17,7 +17,7 @@ export async function renderPerson(user: ILocalUser) { const [avatar, banner, profile] = await Promise.all([ user.avatarId ? DriveFiles.findOne(user.avatarId) : Promise.resolve(undefined), user.bannerId ? DriveFiles.findOne(user.bannerId) : Promise.resolve(undefined), - UserProfiles.findOne({ userId: user.id }).then(ensure) + UserProfiles.findOne(user.id).then(ensure) ]); const attachment: { |