social icon indicating copy to clipboard operation
social copied to clipboard

Public page is empty

Open octavsly opened this issue 4 years ago • 2 comments

Describe the bug This has been reported in the past as fixed, but I still see in in the #migrate-to-nc21

To Reproduce https://nextcloud.domain.com/apps/social/@someuser/

Expected behavior Showing the user and his/her public posts.

Screenshots image

Client details:

  • Linux Gentoo
  • all browsers

Social app version: Latest from #migrate-to-nc21 branch

If necessary I could try several suggestions. I looked inside the PHP code by looking at #244 but was too difficult to find the cause.

octavsly avatar May 11 '21 13:05 octavsly

Looked for three hours in the code but could not do much. Some developers to give me a hint on what to check? Which steps should I try? What files? Some simple debug steps? etc...

octavsly avatar May 11 '21 16:05 octavsly

--- a/lib/Controller/SocialPubController.php
+++ b/lib/Controller/SocialPubController.php
@@ -154,6 +154,7 @@ class SocialPubController extends Controller {
                $page = new PublicTemplateResponse(Application::APP_ID, 'main', $data);
                $page->setStatus($status);
                $page->setHeaderTitle($this->l10n->t('Social'));
+               $page->renderAs("user");
 
                return $page;
        }

This render directive solves the issue. Nevertheless the APP bar is on top which can be a problem for security.

image

octavsly avatar May 11 '21 21:05 octavsly