User picture improvements in node template

Created on 23 April 2014, over 10 years ago
Updated 14 January 2025, 8 days ago

Problem/Motivation

If user pictures are enabled but no user picture is set an empty <article> wrapper prints in node template. Additionally even when there is a user picture the article is untitled.

Proposed resolution

  1. Prevent empty markup printing.
  2. Remove the article wrapper entirely (however we do that, this should happen).
  3. Consider a method for getting the user/author picture directly without any wrapper markup, this should be a renderable array.

Remaining tasks

Discuss and patch.

User interface changes

None.

API changes

None.

🐛 Bug report
Status

Closed: outdated

Version

11.0 🔥

Component

markup

Created by

🇳🇿New Zealand Jeff Burnz

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024