0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-28 00:59:18 -05:00
immich/web/src
eleith a70cd368af
fix(server): use fqdn for og:image meta tag value (#11082)
* attempt to use fqdn for og:image

opengraph image specifies that the url contains http or https, thus
implying a fqdn.

this change uses the external domain from the server config to attempt
to make the og:image have both the existing path to the thumbnail along
with the desired domain

if the server setting is empty, the old behavior will persist

please note, some og implementations do work with relative paths, so not
all og image checkers may still pass, but not all implementations have
this fallback and thus will not find the image otherwise

* tests and ssr for og:image value as fqdn

* formatting

* fix test

* formatting

* formatting

* fix tests

getConfig was requiring authentication. using already initiated global stores instead

* load config in shared link service itself

* join host and pathname/params safely

* use origin instead of host for full domain string

also fixes lint and address the imageURL type which is optional

* chore: clean up

---------

Co-authored-by: eleith <eleith@lemon.localdomain>
Co-authored-by: eleith <online-github@eleith.com>
Co-authored-by: Jason Rasmussen <jason@rasm.me>
2024-07-29 21:38:47 +00:00
..
lib chore(web): update translations (#11416) 2024-07-29 14:48:44 +00:00
params feat(web): assets now have a permanent URL (#8532) 2024-04-24 19:24:19 +00:00
routes fix(server): use fqdn for og:image meta tag value (#11082) 2024-07-29 21:38:47 +00:00
test-data refactor(web): show & hide people (#10933) 2024-07-07 20:33:59 -05:00
app.css chore(web): change license wording and other things (#11309) 2024-07-26 10:34:35 -05:00
app.d.ts feat(web): license UI (#11182) 2024-07-18 10:56:27 -05:00
app.html
hooks.client.ts feat(web): link router (#10644) 2024-06-27 09:09:28 -04:00