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:
Rosa Gutierrez
2026-02-24 20:43:21 +01:00
parent 5bea9633d0
commit 6fb24118ea
2 changed files with 5 additions and 2 deletions
@@ -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