Replies: 6 comments
-
The easiest way to check this is to do a couple URL preview tests. This is somewhat challenging though as the URLs may be inaccessible due to several reasons (firewall, lack of internet, geographic location, etc). It's also possible the homeserver has blocked the IP range (or only whitelisted a few), and most will have 127.0.0.1 blocked therefore checking the homeserver's URL itself is likely to fail. |
Beta Was this translation helpful? Give feedback.
-
Wouldn't it be better to implement some api to get to know that? |
Beta Was this translation helpful? Give feedback.
-
I was trying to avoid that, as outdated servers could end up falsely saying they aren't enabled when they are. It would probably fit well into vector-im/element-web#5193 |
Beta Was this translation helpful? Give feedback.
-
Okay, got your point, thanks for clarification. Maybe add some backwards compatibility code for the beginning. But an api endpoint like needed for https://github.com/vector-im/riot-web/issues/5193 should be the way to solve this sort of problem in my opinion. |
Beta Was this translation helpful? Give feedback.
-
I think an API is the way to go here - it should be possible to contrive "enabled/disabled/server couldn't/wouldn't tell me either way" sematics within said API so that older servers failure to report a setting or feature's being enabled != that feature being reported as disabled. |
Beta Was this translation helpful? Give feedback.
-
And for the record I'm assuming we're warning on the settings page, or disabling the setting(s) rather than popping up 'this server does not support url previews' with every url rendered in the timeline :) |
Beta Was this translation helpful? Give feedback.
-
because it's confusing when you enable previews in the client, but still don't see previews
Beta Was this translation helpful? Give feedback.
All reactions