summaryrefslogtreecommitdiffstats
path: root/app/lib
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2019-12-16 23:55:28 +0100
committerEugen Rochko <eugen@zeonfederated.com>2019-12-16 23:55:28 +0100
commit8094955461419661b88a0361a5d7caed4b19c29a (patch)
tree0e7a988fe2847e23a7cc0f7384b823eb9b5c9919 /app/lib
parent34aa5c7cb2090bf9d995eafdfbf5f9bd01336491 (diff)
Add Event activity-type support (#12637)
This adds support for Event AP type in Mastodon. Events are converted into toots by taking their title (AS name) and their URL (AP ID). Event picture is also brought in if available. Testable by fetching event content from https://test.mobilizon.org Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'app/lib')
-rw-r--r--app/lib/activitypub/activity.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/activitypub/activity.rb b/app/lib/activitypub/activity.rb
index 0ca6b92a4f5..49b1dc9cd05 100644
--- a/app/lib/activitypub/activity.rb
+++ b/app/lib/activitypub/activity.rb
@@ -5,7 +5,7 @@ class ActivityPub::Activity
include Redisable
SUPPORTED_TYPES = %w(Note Question).freeze
- CONVERTED_TYPES = %w(Image Audio Video Article Page).freeze
+ CONVERTED_TYPES = %w(Image Audio Video Article Page Event).freeze
def initialize(json, account, **options)
@json = json