I'm using the Twitter module to display my Identi.ca postings on my website, however all the link to other people's accounts (i.e. @username) point to Twitter instead of Identi.ca.
I'm thinking it's this piece of code on line 114 in 'twitter.pages.inc':

$form['visible_name'] = array(
  '#type' => 'markup',
  '#value' => l($account['screen_name'], 'http://www.twitter.com/' . $account['screen_name']),
);

though I don't know what to change it to...

Comments

Anonymous’s picture

Updates?

cglusky’s picture

Category: bug » support

@bwpanda,
marking this as a support request since we are outside the use case for this module. although you do bring up an interesting point about possibly abstracting this module to work with more microblogging services. but that would need to be handled in another issue as a feature request and may be more than the module maintainers want to tackle. and you might want to read this post http://groups.drupal.org/node/14953 on distributed microblogging. meanwhile, if the identica API is as similar to twitter as i remember you should be able to use this:

$form['visible_name'] = array(
  '#type' => 'markup',
  '#value' => l($account['screen_name'], 'http://identi.ca/' . $account['screen_name']),
);

but i have no idea what else may need to be tweaked to work with identica.
r,
coby

rob_connolly’s picture

As this module has been expanded to support identi.ca, wouldn't it be useful to have the module identify which service is being used and set up the links accordingly.

Anonymous’s picture

Category: support » bug

I agree with Rob; the first sentence on the project page says:

This module provides API integration with the Twitter microblogging service and API-compatible alternatives like Identi.ca.

Respectfully changing this back to a bug report...

EDIT: I should mention that #tag links correctly point to Identi.ca (though they do suffer from this bug: #518836: Incorrect interpretation of hyphenated #tags), it's the @replies that still point to Twitter.

cglusky’s picture

@bwpanda,
you are correct, the way it is worded on the project page does make this more of a bug.

michaek’s picture

This seems like a good one to fix.

steinmb’s picture

Version: 6.x-2.x-dev » 6.x-3.x-dev
Status: Active » Closed (duplicate)