1
0
mirror of https://github.com/immich-app/immich.git synced 2024-11-24 08:52:28 +02:00
immich/e2e
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
..
src fix(server): use fqdn for og:image meta tag value (#11082) 2024-07-29 21:38:47 +00:00
test-assets@898069e47f fix: downgrade exiftool-vendored to fix motion photo extraction (#11145) 2024-07-16 19:55:51 +00:00
.eslintrc.cjs chore(deps): update dependency eslint-plugin-unicorn to v52 (#8629) 2024-04-08 12:45:46 -04:00
.gitignore web: e2e (#7063) 2024-02-13 13:08:49 -05:00
.nvmrc chore(deps): update dependency node to v20.16.0 (#11421) 2024-07-29 10:33:01 -04:00
.prettierignore chore: linting (#7532) 2024-02-29 11:26:55 -05:00
.prettierrc chore: linting (#7532) 2024-02-29 11:26:55 -05:00
docker-compose.yml chore(deps): update redis:6.2-alpine docker digest to e3b17ba (#11303) 2024-07-25 15:20:11 -04:00
package-lock.json chore(deps): update dependency node to v20.16.0 (#11421) 2024-07-29 10:33:01 -04:00
package.json chore(deps): update dependency node to v20.16.0 (#11421) 2024-07-29 10:33:01 -04:00
playwright.config.ts refactor: server auth e2e (#7203) 2024-02-19 12:03:51 -05:00
tsconfig.json chore: linting (#7532) 2024-02-29 11:26:55 -05:00
vitest.config.ts feat(server): userinfo signing (#10756) 2024-07-11 07:55:00 -04:00