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 name not showing up in notes conversation popup #932

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

galviset
Copy link

@galviset galviset commented Feb 3, 2025

When opening the thread of a note, the user name of the author of each answer was not displayed:

image

@Bilelkihal Bilelkihal changed the title Fixed user name not showing up in notes conversation popup Fix: User name not showing up in notes conversation popup Feb 4, 2025
@@ -2,7 +2,7 @@ class NoteDecorator < BaseDecorator
include ApplicationHelper, NotesHelper

def author
view_context.content_tag(:span, get_username(creator), class: "note_author")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this method "get_username" is used also in notes_helper.rb and it's not defined.
it's better to create this function like this:

def get_username(creator)
   LinkedData::Client::Models::User.find(creator, {include: 'all', apikey: apikey}).username
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants