Skip to content

Comment modal can break #2136

Description

@qubodup

Today on https://freesound.org/ I noticed an error when clicking the comment icon of a popular sound - Knock on the door (cc0) by deleted_user_4772965.

In case it's not on the main page any more: https://freesound.org/search/?q=door+knock&f=username%253A%2522deleted_user_4772965%2522&s=Date+added+%28newest+first%29&si_tags=0&si_name=0&si_description=0&si_packname=0&si_sound_id=0&si_username=0&d0=6&d1=8&ig=0&r=0&g=0&dp=0&cm=1&mm=0

clicking the comment icon brings up an error

Image

·Unexpected errors occurred while loading the requested content. Please try again later...

Though in an incognito session I don't get the toast notification, instead in the console I see:

modal.js:340 GET https://freesound.org/people/deleted_user_4772965/sounds/256513/comments/?ajax=1&page=javascript:void(0) 404 (Not Found)

This might be related to the user being deleted or the number of comments being high.

Speculation: It might perhaps also be related to a large number of deleted spam comments accumulating over the years screwing with the comment indexes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions