Random 500 error on thread list with profile_image

Description

GET Thread List endpoint returns 500 error for some of the courses when accessed with requested_field=profile_image

Findings:
If a post is created as anonymous the author is set to null and that is crashing the API.

Steps to Reproduce

None

Reason for Variance

None

Release Notes

None

Status

Assignee

Wajeeha Khalid

Reporter

Wajeeha Khalid

Labels

None

Customer

None

Partner Manager

None

URL

None

Contributor Name

None

Groups with Read-Only Access

None

Actual Points

None

Sub-Team(s)

None

Reach

None

Impact

None

Open edX Discourse Thread

None

Platform Map Area (Levels 1 & 2)

None

Platform Map Area (Levels 3 & 4)

None

Story Points

2

Epic Link

Components

Sprint

None

Priority

CAT-2
Configure