• 
      

    Fix an error with file attachment comments.

    Review Request #14259 — Created Dec. 4, 2024 and submitted

    Information

    Review Board
    release-7.x

    Reviewers

    I ran into an error with the file attachment comments API where we were
    trying to serialize the thumbnail HTML, but mark_safe had been
    incorrectly moved into a TYPE_CHECKING block. This change fixes that.

    Was able to fetch file attachment comments with thumbnail HTML via the
    API.

    Summary ID
    Fix an error with file attachment comments.
    I ran into an error with the file attachment comments API where we were trying to serialize the thumbnail HTML, but `mark_safe` had been incorrectly moved into a `TYPE_CHECKING` block. This change fixes that. Testing Done: Was able to fetch file attachment comments with thumbnail HTML via the API.
    095af6c466f12e00e0255c86e04bd62bb5fef9f2
    maubin
    1. Ship It!
    2. 
        
    chipx86
    1. Ship It!
    2. 
        
    david
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-7.x (c5ebdb6)