On my node, posts with an attached link to a WordPress site are not displaying properly: the link preview is entirely absent and just displays as an empty rectangle.
This is a screenshot of this post, as it appears on my node. I see this behavior on both my phone and my desktop:
Has anyone else encountered this? Any ideas on how to solve it?
I'm running Friendica v2021.01 with PHP version 7.3.19-1~deb10u1.
Thanks in advance. ๐
extarys likes this.
Friendica Support reshared this.
dr-e ๐ก๏ธ
in reply to Spencer • • •silverwizard
in reply to Spencer • • •I find a see that happening for a bit, and then my node catches up, finishes fetching the preview, and displays it.
Generally happens when my site is getting the shit kicked out of it (which happens once an hour or so)
Alexander
in reply to silverwizard • • •Also I took a liberty to browse through your node public search results (/search?q=%23lego) and it seems that what I said is true for your instance as well - none of Hypolite blog posts generated previews.
So now I am almost certain it is not intermittent issue but configuration issue or persistent bug.
utzer [Friendica]
in reply to Spencer • • •Alexander
in reply to Spencer • • •utzer [Friendica]
in reply to Alexander • • •Still I see posts from remote contacts like this too.
Alexander
in reply to utzer [Friendica] • • •To me it looks like some sort of misconfiguration.
It seems to be depending on the link. If I try to make my own post with this link (blog.mrpetovan.com/review/reviโฆ) I immediately get the same blank result.
If I try different link (say bbc.com/news/av/world-us-canadโฆ) - it works. So it seems it has something to do with the exact link.
Alexander
in reply to Spencer • • •Just tried posting another link from the same blog to confirm (blog.mrpetovan.com/review/moviโฆ) - same result, just an empty rectangle.
So it feels like some configuration issue.
utzer [Friendica]
in reply to Alexander • • •@Alexander maybe a configuration error on the Friendica end.
In the source code of the last link there is embedding info included, but that is either invalid or not used.
utzer [Friendica]
in reply to utzer [Friendica] • • •@Alexander the two json/xml files look good and contain the embedding, a picture and some preview text. So probably an issue in Friendica. I wanted to open an issue but did not do it yet.
Feel free to do it.
Alexander
in reply to utzer [Friendica] • • •I suspect there could be some hidden setting we just don't know about. If no one here comes up with it I'll open an issue but maybe it works as intended.
Maybe devs know about it? ๐
cc: @Michael Vogel and @Hypolite Petovan
Alexander
in reply to utzer [Friendica] • • •The question is why some instances work and others don't. E.g. venera.social works.
Maybe there is some setting somewhere?
@Steffen K9 ๐ฐ - it works on libranet, what magic do you have in there? ๐
utzer [Friendica]
in reply to Alexander • • •@Alexander @Steffen K9 ๐ฐ
Surely some dark magic.
Steffen K9 ๐ฐ likes this.
Steffen K9 ๐ฐ
in reply to Alexander • • •Alexander
in reply to Steffen K9 ๐ฐ • • •utzer [Friendica]
in reply to Steffen K9 ๐ฐ • • •Steffen K9 ๐ฐ
in reply to utzer [Friendica] • • •Enable the setting in admin -> site -> policies -> no oembed rich content. Then define the exceptions in the field below.
Btw. that's another example of weird setting names: enable an option to actually disable a function. From my point of view "enable" should always enable something. ๐
utzer [Friendica]
in reply to Steffen K9 ๐ฐ • • •utzer [Friendica]
in reply to utzer [Friendica] • • •Steffen K9 ๐ฐ
in reply to utzer [Friendica] • • •utzer [Friendica]
in reply to Steffen K9 ๐ฐ • • •@Steffen K9 ๐ฐ hmm OK, so what I need to do is allow all pages but not any WordPress as Friendica seems to have problems with embedding from WordPress.
I think we need to file an issue for this, still not a real solution. ๐
But thanks for explaining.
Alexander
in reply to utzer [Friendica] • • •It still seems broken for me though. I tested it a bit and oembed doesn't work for me with Funkwhale, Soundcloud, YouTube... same empty rectangles.
I even bumped server version to develop - still doesn't work.
I guess something broke after all. But what?
Steffen K9 ๐ฐ
in reply to utzer [Friendica] • • •If you want oembed ON all the time you need to DISABLE the option completely.
If you want oembed OFF you need to ENABLE te option.
If you want oembed ONLY with some defined domains you need to ENABLE the option plus put a comma separated list of domains in the exceptions field.
dr-e ๐ก๏ธ
in reply to Spencer • • •Alexander
in reply to Spencer • • •Since I see this on multiple instances and I couldn't get it to work I created an issue:
Embedded rich content doesn't show ยท Issue #9875 ยท friendica/friendica
utzer [Friendica] likes this.
utzer [Friendica]
in reply to Alexander • • •Pierre Bernardeau
in reply to Spencer • • •