mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 11:50:49 +08:00
8 lines
243 B
Ruby
8 lines
243 B
Ruby
json.username @user.full_name
|
|
json.real_name @user.real_name
|
|
json.login @user.login
|
|
json.user_id @user.id
|
|
json.image_url url_to_avatar(@user)
|
|
json.admin @user.admin?
|
|
json.user_identity @user.identity
|
|
json.is_watch current_user&.watched?(@user) |