1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2025-04-17 22:32:17 +02:00

Improve comment to explain redundant call

This commit is contained in:
David Roetzel 2025-04-10 15:03:09 +02:00
parent 95f02467c9
commit 8968d3a410
No known key found for this signature in database

View file

@ -16,7 +16,11 @@ module Status::FaspConcern
return unless Mastodon::Feature.fasp_enabled?
return unless account_indexable? && public_visibility?
store_uri unless uri # TODO: solve this more elegantly
# We need the uri here, but it is set in another `after_commit`
# callback. Hooks included from modules are run before the ones
# in the class itself and can neither be reordered nor is there
# a way to declare dependencies.
store_uri if uri.nil?
Fasp::AnnounceContentLifecycleEventWorker.perform_async(uri, 'new')
end