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:
parent
95f02467c9
commit
8968d3a410
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue