mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Allow pending posts to have empty titles (#23366)
It's possible for a pending post to have a nil title. The PendingPostSerializer should not throw an error when this is encountered.
This commit is contained in:
parent
9c65e2140a
commit
909620db18
@ -22,6 +22,6 @@ class PendingPostSerializer < ApplicationSerializer
|
||||
end
|
||||
|
||||
def title
|
||||
payload["title"] || topic.title
|
||||
payload["title"] || topic&.title
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user