forked from GNUsocial/gnu-social
Remove errant double HTML entity encoding in API source attribution
This commit is contained in:
@@ -319,13 +319,17 @@ class ApiAction extends Action
|
||||
$ns = $notice->getSource();
|
||||
if ($ns) {
|
||||
if (!empty($ns->name) && !empty($ns->url)) {
|
||||
$source = '<a href="' . $ns->url . '" rel="nofollow">' . $ns->name . '</a>';
|
||||
$source = '<a href="'
|
||||
. htmlspecialchars($ns->url)
|
||||
. '" rel="nofollow">'
|
||||
. htmlspecialchars($ns->name)
|
||||
. '</a>';
|
||||
} else {
|
||||
$source = $ns->code;
|
||||
}
|
||||
}
|
||||
|
||||
$twitter_status['source'] = htmlentities($source);
|
||||
$twitter_status['source'] = $source;
|
||||
$twitter_status['id'] = intval($notice->id);
|
||||
|
||||
$replier_profile = null;
|
||||
|
Reference in New Issue
Block a user