Skip to content

Commit 5459153

Browse files
authored
Merge pull request #57 from fbsamples/display-name
Display Name of Connected User
2 parents bd53d14 + c8d3255 commit 5459153

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ const FIELD__LINK_ATTACHMENT_URL = 'link_attachment_url';
3939
const FIELD__TOPIC_TAG = 'topic_tag';
4040
const FIELD__MEDIA_TYPE = 'media_type';
4141
const FIELD__MEDIA_URL = 'media_url';
42+
const FIELD__NAME = 'name';
4243
const FIELD__GIF_URL = 'gif_url';
4344
const FIELD__PERMALINK = 'permalink';
4445
const FIELD__POLL_ATTACHMENT = 'poll_attachment';
@@ -250,6 +251,7 @@ app.get('/account', loggedInUserChecker, async (req, res) => {
250251
{
251252
[PARAMS__FIELDS]: [
252253
FIELD__USERNAME,
254+
FIELD__NAME,
253255
FIELD__THREADS_PROFILE_PICTURE_URL,
254256
FIELD__THREADS_BIOGRAPHY,
255257
FIELD__IS_VERIFIED,

views/account.pug

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ block content
1111
.username
1212
span
1313
a(href=user_profile_url target='_blank') @#{username}
14+
.display-name
15+
p #{name}
1416
.user-bio
1517
p #{threads_biography}
1618

0 commit comments

Comments
 (0)