Merge pull request #10782 from annando/display-uid

Prefer the local user when displaying items
pull/10789/head
Hypolite Petovan 2021-10-01 10:41:38 -04:00 zatwierdzone przez GitHub
commit 0c53adfd72
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -246,7 +246,7 @@ function display_content(App $a, $update = false, $update_uid = 0)
$page_uid = 0;
$parent = null;
if (!empty($parent_uri_id)) {
if (!local_user() && !empty($parent_uri_id)) {
$parent = Post::selectFirst(['uid'], ['uri-id' => $parent_uri_id, 'wall' => true]);
}