Fixes to token replacement

Created on 17 May 2023, almost 2 years ago
Updated 19 May 2023, almost 2 years ago

Problem/Motivation

  1. The default [rrssb:image] token doesn't pick up image files
  2. The [rrssbsite:logo-url] returns the site base URL if there isn't a logo
  3. The code is over-complicated due to calling Token::replace()

Proposed resolution

  1. Change the default from [node:field_image:url]|[rrssbsite:logo-url] to [node:field_image:entity:url]|[rrssbsite:logo-url]
  2. Detect empty logo string
  3. Simplify the code by using Token::replacePlain()

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom adamps

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024