Skip to content

shorten-links should apply also after you edit your comment #2264

Closed

Description

@fregante
  1. Edit one of your comments containing a URL
  2. Save it
  3. Notice that the links are no longer shortened by the shorten-links feature.

How to fix this

Activity

  1. added
    small
    on Jul 20, 2019
  2. fregante commented on Apr 11, 2020

    @fregante
    MemberAuthor

    This should use the new helper in #2992

  3. arjunvegda commented on Jul 19, 2020

    @arjunvegda

    This issue seems very interesting!

    I did a little bit of digging, and it looks like the shorten-links feature is not being applied to the newly added comments as well. Based on the description of this issue, it sounds like it should, right?

    And should shorten-links feature include onNewComments listener or indicate that the page has comments?

    Adding this to the shorten-links seems to "fix" the issue for links in the comments. However, it may not work for links outside of the comment/discussion box.

    include: [
     pageDetect.hasComments
    ]
    

    I am pretty new to repo so I might not be heading in the right direction, right away, haha.

  4. fregante commented on Jul 20, 2020

    @fregante
    MemberAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedbugsmall

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions