Add recognized activity types to a constant and use it in the test

This commit is contained in:
Mark Felder 2024-08-30 09:35:04 -04:00
commit e38f5f1a81
2 changed files with 21 additions and 1 deletions

View file

@ -85,6 +85,24 @@ defmodule Pleroma.Constants do
]
)
const(activity_types,
do: [
"Create",
"Update",
"Delete",
"Follow",
"Accept",
"Reject",
"Add",
"Remove",
"Like",
"Announce",
"Undo",
"Flag",
"EmojiReact"
]
)
const(allowed_activity_types_from_strangers,
do: [
"Block",