0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/test/unit
Naz 6b07d4b2a0 🐛 Fixed __GHOST_URL__ appearing in generated excerpts
refs https://github.com/TryGhost/Team/issues/467
refs a6f5eb71be

- When a generated excerpt is calculated for posts/page resources it uses raw model! to get the data. Model contains untranformed __GHOST_URL__ markup which has to be additionally processed before extracint an excerpt or use the transformed `plaintext` from available attributes (chose the latter to decrease complexity)
- Removed model dependency as `attrs` at this point of serialization should always contain the `plaintext` field. It's ugly and has an unsolved bug report here - https://github.com/TryGhost/Ghost/issues/10396. The reliance should be solved at some point, but definitely not a part of this issue
2021-03-17 19:12:40 +13:00
..
adapters Fixed "no-shadow" eslint warning in tests 2020-10-19 17:45:26 +13:00
api 🐛 Fixed __GHOST_URL__ appearing in generated excerpts 2021-03-17 19:12:40 +13:00
apps Fixed AMP URLs not being transformed to absolute (#12737) 2021-03-06 09:43:50 +00:00
data Updated fixture copy 2021-03-11 19:20:30 +00:00
helpers Updated default format for date helper to locale-based date string (#12733) 2021-03-05 13:35:31 +00:00
lib Fixed image and gallery cards not having srcset or sizes attributes (#12765) 2021-03-15 21:38:27 +00:00
models Fixed __GHOST_URL__ appearing in settings values after edit (#12738) 2021-03-08 18:41:43 +00:00
server Moved notify out of GhostServer 2021-02-19 20:22:56 +00:00
services Fixed circular dependency warning for the proxy service (#12746) 2021-03-11 16:30:49 +00:00
shared/config Updated tests locations and added linting of core/shared (#11872) 2020-06-01 22:06:50 +01:00
web Pointed the v3 unit tests to the actual v3 code 2021-01-22 16:32:03 +13:00