Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: image was missing in poll serializer
Browse files Browse the repository at this point in the history
novacuum committed Apr 18, 2024
1 parent 6824eef commit 3db638e
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion js/dist/forum.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/Api/Serializers/PollSerializer.php
Original file line number Diff line number Diff line change
@@ -49,6 +49,7 @@ protected function getDefaultAttributes($poll)
'canSeeVoters' => $this->actor->can('seeVoters', $poll),
'canChangeVote' => $this->actor->can('changeVote', $poll),
'isGlobal' => $poll->isGlobal(),
'image' => $poll->image,
'imageUrl' => $this->getImageUrl($poll),
'imageAlt' => $poll->image_alt,
'publicPoll' => $poll->public_poll,

0 comments on commit 3db638e

Please sign in to comment.