Steps to reproduce the problem
- 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?
Steps to reproduce the problem
typethat is not recognized by Mastodon (i.e., not in SUPPORTED_TYPES or CONVERTED_TYPES)Expected behaviour
The activity is converted to a status using
contentorname, withurlappendedActual 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:
mastodon/app/lib/activitypub/activity.rb
Line 9 in 12ed2d7
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?