[ActivityPub] Add ActivityToType

Minor bug fixes
This commit is contained in:
2021-11-30 00:46:29 +00:00
parent 4ddd00a091
commit df3fbbc9e7
7 changed files with 151 additions and 7 deletions

View File

@@ -25,9 +25,9 @@ abstract class AS2ToEntity
};
}
public static function activity_stream_two_object_type_to_gs_table($verb)
public static function activity_stream_two_object_type_to_gs_table($object)
{
return match ($verb) {
return match ($object) {
'Note' => 'note',
default => throw new ClientException('Invalid verb'),
};