fixes bug on quitter.se, where getUrl returned 400 error for activity notices (which don't have url:s)

This commit is contained in:
Hannes Mannerheim 2015-05-25 12:17:38 +02:00
parent 6511f2e6cd
commit dc3d1d2fb7

View File

@ -545,8 +545,11 @@ class QvitterPlugin extends Plugin {
}
else {
$twitter_status['is_local'] = false;
if($notice->object_type != 'activity') {
$twitter_status['external_url'] = $notice->getUrl(true);
}
}
if($notice->object_type == 'activity') {
$twitter_status['is_activity'] = true;
}