Skip to content

"Converted types" logic should apply to more/any/all unrecognized types #18806

@trwnh

Description

@trwnh

Steps to reproduce the problem

  1. Send an activity with a type that is not recognized by Mastodon (i.e., not in SUPPORTED_TYPES or CONVERTED_TYPES)

Expected behaviour

The activity is converted to a status using content or name, with url appended

Actual behaviour

The activity seems to be silently dropped

Specifications

https://social.exozy.me/@ta180m/108636237419382872

Looking at the code I see that "converted types" are explicitly defined here:

CONVERTED_TYPES = %w(Image Audio Video Article Page Event).freeze

However, there doesn't seem to be any apparent reason why only these types are converted. Shouldn't conversion be done for any unsupported type, including for unrecognized ones?

Metadata

Metadata

Assignees

No one assigned

    Labels

    activitypubProtocol-related changes, federation

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions