Add tweet mode, retwitted status and quoted status

Created on 17 July 2020, almost 4 years ago
Updated 3 November 2023, 8 months ago

Problem/Motivation

I need to import some field from Tweet. The fields are: image url, video url, retwitted information, urls, author's username and author's profile image url.
Some information are available in extended mode, retwitted tweet and quoted tweet.
I need to build a similar Twitter timeline
https://developer.twitter.com/en/docs/twitter-for-websites/timelines/ove...

Proposed resolution

I created a patch to import some information. The original patch is https://www.drupal.org/project/get_tweets/issues/3088100 → #4.
This patch is build for 2.0.0-beta1 module version.
The patch add the following form field:

  • tweet_mode: switch from compact to extended mode
  • retweeted_status: enable to import retweeted status information
  • quoted_status: enable to import quoted status information

The patch save some information to tweet node. The patch adds some field:

  1. field_tweet_external_video: video url
  2. field_tweet_is_retweeted: retweeted information
  3. field_tweet_profile_image_url: author's profile image url
  4. field_tweet_urls: urls from tweet text
  5. field_tweet_user_name: author's username
  6. field_tweet_is_reply: whether tweet is a reply

The patch doesn't include tweet's twig template. I attach an example.

✨ Feature request
Status

Needs review

Version

2.0

Component

Code

Created by

🇮🇹Italy marco.aresu Cagliari

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • We have created a patch for 3x branch.
    Need for creating this patch: 3x branch is D10 compatible and available patch which is for 2.x failed when applying on 3.x
    So, created new patch without any modification to be used for 3.x

Production build 0.69.0 2024