Browse Source

Add profile story external link

master
KaKi87 1 year ago
parent
commit
75d575f026
  1. 1
      README.md
  2. 5
      index.js

1
README.md

@ -570,6 +570,7 @@ Result in array : inbox-like
* `1.0.17` (2021-01-2?)
- Fixed error on empty profile story
- Fixed `409` detection
- Added profile story external link
* `2.0.0` (202?-??-??)
- Refactored names
- Refactored scopes

5
index.js

@ -351,7 +351,10 @@ module.exports = class Insta {
url: item['is_video'] ? item['video_resources'][0]['src'] : item['display_url'],
type: item['is_video'] ? 'video' : 'photo',
timestamp: item['taken_at_timestamp'],
expirationTimestamp: item['expiring_at_timestamp']
expirationTimestamp: item['expiring_at_timestamp'],
...(item['story_cta_url'] ? {
externalLink: item['story_cta_url']
} : {})
}))
} : null)).catch(reject)).catch(reject);
});