Skip to content

Commit a41e938

Browse files
authored
Merge pull request #45 from fbsamples/topic-tag-individual-post
Add Topic Tag to Individual Post Retrieval
2 parents 19012f8 + 20ccdc0 commit a41e938

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const FIELD__ID = 'id';
2828
const FIELD__IS_REPLY = 'is_reply';
2929
const FIELD__LIKES = 'likes';
3030
const FIELD__LINK_ATTACHMENT_URL = 'link_attachment_url';
31+
const FIELD__TOPIC_TAG = 'topic_tag';
3132
const FIELD__MEDIA_TYPE = 'media_type';
3233
const FIELD__MEDIA_URL = 'media_url';
3334
const FIELD__GIF_URL = 'gif_url';
@@ -501,6 +502,7 @@ app.get('/threads/:threadId', loggedInUserChecker, async (req, res) => {
501502
FIELD__REPLY_AUDIENCE,
502503
FIELD__ALT_TEXT,
503504
FIELD__LINK_ATTACHMENT_URL,
505+
FIELD__TOPIC_TAG,
504506
FIELD__POLL_ATTACHMENT,
505507
].join(','),
506508
}, req.session.access_token);

views/thread.pug

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ block content
3030
tr
3131
td Link Attachment URL
3232
td #{link_attachment_url}
33+
tr
34+
td Topic Tag
35+
td #{topic_tag}
3336
tr
3437
td Poll
3538
td

0 commit comments

Comments
 (0)