Move Article from supported to converted types (#6218)

pull/308/head
puckipedia 2018-01-08 00:21:14 +01:00 committed by Eugen Rochko
parent 1d92b90be9
commit 0eff42d688
1 changed files with 2 additions and 2 deletions

View File

@ -1,8 +1,8 @@
# frozen_string_literal: true # frozen_string_literal: true
class ActivityPub::Activity::Create < ActivityPub::Activity class ActivityPub::Activity::Create < ActivityPub::Activity
SUPPORTED_TYPES = %w(Article Note).freeze SUPPORTED_TYPES = %w(Note).freeze
CONVERTED_TYPES = %w(Image Video).freeze CONVERTED_TYPES = %w(Image Video Article).freeze
def perform def perform
return if delete_arrived_first?(object_uri) || unsupported_object_type? return if delete_arrived_first?(object_uri) || unsupported_object_type?