Skip to content

Fix incorrect naming in code related to cross-references

The following discussion from !72794 (merged) should be addressed:

  • @alexkalderimis started a discussion: (+1 comment)

    I notice that the signature for this method is defined as:

        def create_cross_reference_note(mentioned, noteable, author)
          # implement inside child
        end

    the mismatch between noteable and mentionable is a bit confusing. Is it intentional?

    Looking through the code path again, it seems we always have one Mentionable (the mentioner) mentioning another Mentionable (the mentioned), and noteables aren't really directly involved (they just tend to be mentionables too 😅):