]> git.mxchange.org Git - friendica.git/commitdiff
Fix feed display in browser when using emojis
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 17 Dec 2018 03:58:43 +0000 (22:58 -0500)
committerGitHub <noreply@github.com>
Mon, 17 Dec 2018 03:58:43 +0000 (22:58 -0500)
src/Module/Feed.php

index 4c7059c038dc0bb221699f4c3840dcad3606f2bf..e5ebe2a4d66239e4551232fb68c49b3fe639e05a 100644 (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();
        }
 }