Use internal account ID as account_id and add account_slug
In native push payload, to be consistent about how we refer to this in other endpoints.
This commit is contained in:
@@ -189,7 +189,8 @@ class Notification::PushTarget::NativeTest < ActiveSupport::TestCase
|
||||
native = push.send(:native_notification)
|
||||
|
||||
assert_not_nil native.data[:url]
|
||||
assert_equal @notification.account.external_account_id, native.data[:account_id]
|
||||
assert_equal @notification.account.id, native.data[:account_id]
|
||||
assert_equal @notification.account.slug, native.data[:account_slug]
|
||||
assert_equal @notification.creator.name, native.data[:creator_name]
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user