diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-11-26 11:33:14 -0600 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-11-26 11:38:16 -0600 |
commit | 876b6dbf766372303ad5f646fdcba4dccde47ca4 (patch) | |
tree | 57ef2687fcd27cd60312f0054b0c627590cd84d7 /app/services | |
parent | 74bb8ffdfd368e518ef18dcb1bdb56121c0d4cc4 (diff) |
Revert 5c4a7ea666, keep old Tavern curation behavior
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/favourite_service.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/services/favourite_service.rb b/app/services/favourite_service.rb index a0ab3b4b7..f3e89746b 100644 --- a/app/services/favourite_service.rb +++ b/app/services/favourite_service.rb @@ -16,6 +16,7 @@ class FavouriteService < BaseService return favourite unless favourite.nil? favourite = Favourite.create!(account: account, status: status) + curate!(status) unless status.curated? || !status.published? create_notification(favourite) bump_potential_friendship(account, status) @@ -44,4 +45,9 @@ class FavouriteService < BaseService def build_json(favourite) Oj.dump(serialize_payload(favourite, ActivityPub::LikeSerializer)) end + + def curate!(status) + status.curate! + DistributionWorker.perform_async(status.id) + end end |