sizonov_stas facebook and g+ does't work in my case https://i.imgur.com/OWU7bG1.png https://i.imgur.com/U7FIigZ.png
NikolaiMorozov Help needed. For now I use PrepareApiData event to access data to use in head metadata. But I cant use it for Davis user's page because ShowUserController used in many places and head metadata overwrites. How I can access same data?
Davis NikolaiMorozov You cannot change the page's headers through the API unless you modify the JS to do so. There's no point to though. Just have it set to set the headers on the initial page load.
NikolaiMorozov Davis I'm not trying to change head metadata through the API - I'm accessing page data on PrepareApiData event (cant find another way) to set head metadata. I can't do it in JS because socials parse head metadata in nojs mode.
NikolaiMorozov Davis maybe ConfigureClientView (no ConfigureWebView in my installation ?)? But how to access the variables in it?
Davis NikolaiMorozov https://github.com/flarum/core/blob/master/src/Event/ConfigureWebApp.php https://github.com/flarum/core/blob/df247925d457e2f58f1a387b8d0dca9eb53050ac/src/Http/WebApp/WebAppView.php
Davis NikolaiMorozov https://github.com/flarum/core/blob/v0.1.0-beta.5/src/Http/Controller/AbstractClientController.php
NikolaiMorozov Davis yep, I'm using ConfigureClientView event to get ClientView and set default metatags. But how to access Discussion/User/... page data from it?
Davis https://github.com/flarum/core/blob/v0.1.0-beta.5/src/Http/Controller/ClientView.php Try using request? Sorry don't have much time to do this I'm not at my computer either. You should just dig through the source code and figure it out that way.
NikolaiMorozov Davis You should just dig through the source code and figure it out that way. Thats what I tried. And couldn't find solution so i came here ?
NikolaiMorozov Davis Thx, but allmost all the time it's ClientView, so can't use it. ChallaPradyumna Yep, but wich image should i use? Favicon? First image in discussion? For now socials allow you to chose image if they find any on page.
NikolaiMorozov Davis I mean it's ClientController in $this->action allmost all the time - for example /u/user and /t/tag have ClientController in action on page open.