nanka iroiro
This commit is contained in:
parent
2053a041e5
commit
14d12c21f2
6 changed files with 51 additions and 2 deletions
|
@ -48,6 +48,7 @@ type IUserBase = {
|
|||
usernameLower: string;
|
||||
avatarId: mongo.ObjectID;
|
||||
bannerId: mongo.ObjectID;
|
||||
wallpaperId: mongo.ObjectID;
|
||||
data: any;
|
||||
description: string;
|
||||
pinnedNoteId: mongo.ObjectID;
|
||||
|
@ -412,6 +413,10 @@ export const pack = (
|
|||
? `${config.drive_url}/${_user.bannerId}`
|
||||
: null;
|
||||
|
||||
_user.wallpaperUrl = _user.wallpaperId != null
|
||||
? `${config.drive_url}/${_user.wallpaperId}`
|
||||
: null;
|
||||
|
||||
if (!meId || !meId.equals(_user.id) || !opts.detail) {
|
||||
delete _user.avatarId;
|
||||
delete _user.bannerId;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue