mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-22 03:43:40 +00:00
[twitter] Shorten foreign share mention
This commit is contained in:
parent
4eff144765
commit
18a742546c
1 changed files with 1 additions and 1 deletions
|
@ -1896,7 +1896,7 @@ function twitter_convert_share(array $attributes, array $author_contact, $conten
|
||||||
if ($author_contact['network'] == Protocol::TWITTER) {
|
if ($author_contact['network'] == Protocol::TWITTER) {
|
||||||
$mention = '@' . $author_contact['nickname'];
|
$mention = '@' . $author_contact['nickname'];
|
||||||
} else {
|
} else {
|
||||||
$mention = Protocol::formatMention($attributes['profile'], $attributes['author']);
|
$mention = $author_contact['addr'];
|
||||||
}
|
}
|
||||||
|
|
||||||
return ($is_quote_share ? "\n\n" : '' ) . 'RT ' . $mention . ': ' . $content . "\n\n" . $attributes['link'];
|
return ($is_quote_share ? "\n\n" : '' ) . 'RT ' . $mention . ': ' . $content . "\n\n" . $attributes['link'];
|
||||||
|
|
Loading…
Reference in a new issue