Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I want to list the tweets that the global account has marked as favourites in twitter
Comment | File | Size | Author |
---|---|---|---|
#7 | twitter-favorites-1850542-7.patch | 22.12 KB | kerasai |
Comments
Comment #1
juampynr CreditAttribution: juampynr commentedStarted working on it at branch 1850542-favorites. As one tweet can be favorited by more than one account I may need to create an extra table with fields relation, screen_name, status_id.
Comment #2
juampynr CreditAttribution: juampynr commentedWork is being carried out here http://drupalcode.org/project/twitter.git/commitdiff/7d17bbf
Comment #3
kerasai CreditAttribution: kerasai commentedIs anything happening with this? I need this functionality and am planning to roll a version against 7.x-5.x. Any guidance?
Comment #4
juampynr CreditAttribution: juampynr commented@kerasai, not yet. It is kind of tricky because we need to keep track of the relationship of favorite tweets for each user.
Patches are welcome.
Comment #5
kerasai CreditAttribution: kerasai commentedI was more concerned on logic for deleting tweets. If all tweets are deleted for a user, have to keep tweets that others have favorited, etc...
Unless you object I'm going to plan on developing it as a separate module. That way it can be included as a sub-module. If desired to integrate into the main Twitter module, it would also be fairly easy to integrate the code at that point.
Comment #6
kerasai CreditAttribution: kerasai commentedAn update on this, I began developing as a separate sub module but the twitter_account_list_form() and related theme function aren't dynamic enough to handle rendering the extra fields. I'd rather have this separate but I'm not ambitious enough to tackle the changes necessary to make the rows flexible to work with a form_alter at this time. I'm going to rework this as a patch to the twitter module based on #2. I hope to have a chance to work on that some tomorrow.
Comment #7
kerasai CreditAttribution: kerasai commentedPatch attached. Working to suit my requirements, only drawback is there's no way to "unfavorite." Twitter's API imposes some limitations on tracking favorites going back in time. If you have any ideas on how to handle this let me know and I'll look into it further.
This is mostly the work you started in #2 with a bit built out to adjust schema, adjust account config, CRUD for tracking favorites, and Views integration. I tried to focus only on changes for this "favorites" functionality, but there were a few busted links in the admin screens, etc that I also touched up. A few other changes done by the IDE which is set to enforce Drupal coding standards--take them or leave them.
Comment #8
juampynr CreditAttribution: juampynr commentedtwitfaves module offers a block with favorite tweets using the Twitter module authentication and API.
This is a working solution until a better fix has been implemented. However, I am pushing for moving twitfaves as a contrib module of Drupal.org.