Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix User::getAvatar() after posting in forum topic #2976

Merged
merged 1 commit into from
Aug 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix User::getAvatar() after posting in forum topic
  • Loading branch information
DominikSLK committed Aug 6, 2022
commit 66258f8d26e084ef741683487689057e9dd51f69
2 changes: 1 addition & 1 deletion modules/Forum/pages/forum/view_topic.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@
'author' => $user->getDisplayname(),
]),
'content_full' => strip_tags(str_ireplace(['<br />', '<br>', '<br/>'], "\r\n", $content)),
'avatar_url' => $user->getAvatar(null, true),
'avatar_url' => $user->getAvatar(128, true),
'title' => $topic->topic_title,
'url' => URL::getSelfURL() . ltrim(URL::build('/forum/topic/' . urlencode($topic->id) . '-' . $forum->titleToURL($topic->topic_title)), '/'),
'topic_author_user_id' => $topic_user->data()->id,
Expand Down