Skip to content

Commit

Permalink
Merge pull request #2771 from manyfold3d/fix-edit-error
Browse files Browse the repository at this point in the history
Fix error thrown when editing creators or collections
  • Loading branch information
Floppy committed Sep 24, 2024
2 parents 098be10 + ea990e1 commit a17cf61
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 a17cf61

Please sign in to comment.