Fix feed display in browser when using emojis

This commit is contained in:
Hypolite Petovan 2018-12-16 22:58:43 -05:00 committed by GitHub
parent b6623216f0
commit faff105f86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,6 +44,7 @@ class Feed extends BaseModule
case 'posts':
case 'comments':
case 'activity':
// Correct type names, no change needed
break;
case 'replies':
$type = 'comments';
@ -53,8 +54,8 @@ class Feed extends BaseModule
}
$nickname = $a->argv[1];
header("Content-type: application/atom+xml");
header("Content-type: application/atom+xml; charset=utf-8");
echo OStatus::feed($nickname, $last_update, 10, $type, $nocache, true);
killme();
exit();
}
}