Closed (won't fix)
Project:
Twitter
Version:
7.x-5.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 Nov 2012 at 09:51 UTC
Updated:
17 Mar 2013 at 06:34 UTC
Jump to comment: Most recent file
Comments
Comment #1
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 commentedWork is being carried out here http://drupalcode.org/project/twitter.git/commitdiff/7d17bbf
Comment #3
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 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 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 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 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 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.