Skip to content

Commit

Permalink
fix error thrown when editing creators or collections
Browse files Browse the repository at this point in the history
  • Loading branch information
Floppy committed Sep 24, 2024
1 parent 098be10 commit ea990e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/concerns/followable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def post_creation_activity
end

def post_update_activity
return if actor.activities_as_entity.where(created_at: TIMEOUT.minutes.ago..).count > 0
return if actor&.activities_as_entity&.where(created_at: TIMEOUT.minutes.ago..)&.count&.> 0
user = permitted_users.with_permission("own").first || SiteSettings.default_user
return if user.nil?
Federails::Activity.create!(
Expand Down

0 comments on commit ea990e1

Please sign in to comment.