1
0
mirror of https://github.com/immich-app/immich.git synced 2024-11-24 08:52:28 +02:00
immich/server
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
..
bin fix(server): healthcheck (#10811) 2024-07-03 11:27:03 -05:00
resources feat: use immich hosted map tiles (#11332) 2024-07-26 15:41:09 +01:00
src fix(server): use fqdn for og:image meta tag value (#11082) 2024-07-29 21:38:47 +00:00
test feat(server): accepted video containers (#11274) 2024-07-21 21:14:23 +00:00
.eslintrc.js chore(deps): update dependency eslint-plugin-unicorn to v53 (#9502) 2024-05-15 18:06:25 -04:00
.gitignore feat(web): re-add open graph tags for public share links (#5635) 2023-12-11 13:37:47 -06:00
.nvmrc chore(deps): update dependency node to v20.16.0 (#11421) 2024-07-29 10:33:01 -04:00
.prettierignore refactor: open api (#6334) 2024-01-12 07:36:27 -05:00
.prettierrc fix(server): lint import order (#3974) 2023-09-04 21:45:59 +02:00
Dockerfile chore(deps): update node (#11322) 2024-07-24 16:13:24 -04:00
nest-cli.json chore(server): enable swagger to take class validator rules into account (#9022) 2024-04-22 18:13:44 -04:00
package-lock.json chore(server): make vite-tsconfig-paths a dev dependency instead (#11404) 2024-07-27 21:50:35 +02:00
package.json chore(deps): update dependency node to v20.16.0 (#11421) 2024-07-29 10:33:01 -04:00
README.md docs: add some details for getting started as a developer (#8468) 2024-04-02 11:56:33 -05:00
start.sh chore: change default thumbnail concurrency and auto-detect container core count (#9981) 2024-06-05 11:45:53 +01:00
tsconfig.build.json fix: exclude e2e format (#3250) 2023-07-13 21:41:16 -05:00
tsconfig.json refactor(server): use .toSorted (#10904) 2024-07-06 10:32:38 -04:00
vitest.config.mjs fix(server): make vitest pick up edited files (#11385) 2024-07-26 16:26:38 -05:00

Immich server project

This project uses the NestJS web framework. Please refer to the NestJS docs for information on getting started as a contributor to this project.