Skip to content

Commit dd15536

Browse files
authored
Merge pull request #39 from fbsamples/gif-url
Retrieve GIF URL for Individual Post
2 parents b76629c + 77cbb2f commit dd15536

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const FIELD__LIKES = 'likes';
3030
const FIELD__LINK_ATTACHMENT_URL = 'link_attachment_url';
3131
const FIELD__MEDIA_TYPE = 'media_type';
3232
const FIELD__MEDIA_URL = 'media_url';
33+
const FIELD__GIF_URL = 'gif_url';
3334
const FIELD__PERMALINK = 'permalink';
3435
const FIELD__POLL_ATTACHMENT = 'poll_attachment';
3536
const FIELD__REPLIES = 'replies';
@@ -492,6 +493,7 @@ app.get('/threads/:threadId', loggedInUserChecker, async (req, res) => {
492493
FIELD__TEXT,
493494
FIELD__MEDIA_TYPE,
494495
FIELD__MEDIA_URL,
496+
FIELD__GIF_URL,
495497
FIELD__PERMALINK,
496498
FIELD__TIMESTAMP,
497499
FIELD__IS_REPLY,

views/thread.pug

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ block content
2020
td Media URL
2121
td
2222
a(href=media_url target='_blank') #{media_url}
23+
tr
24+
td GIF URL
25+
td
26+
a(href=gif_url target='_blank') #{gif_url}
2327
tr
2428
td Alt Text
2529
td #{alt_text}

0 commit comments

Comments
 (0)