Skip to content

Commit

Permalink
Merge pull request #3295 from manyfold3d/fix-actor-syntax
Browse files Browse the repository at this point in the history
fix actor method calls within federails
  • Loading branch information
Floppy authored Dec 10, 2024
2 parents f2322d6 + 9696a46 commit 471c88f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/views/activities/_create_actor.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<%- subject = activity&.federails_actor %>
<%- subject = activity&.actor %>
<%- object = activity&.entity %>
<%- thing = object&.entity %>
<% if thing && !thing.is_a?(User) && (thing.grants_permission_to?(["view", "edit", "own"], current_user) || thing.grants_permission_to?(["view", "edit", "own"], current_user&.roles)) %>
Expand Down
4 changes: 2 additions & 2 deletions app/views/activities/_create_following.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
<div class="card-body py-2">
<div class="row">
<div class="col">
<% if follow.federails_actor.entity == current_user %>
<% if follow.actor.entity == current_user %>
You
<% else %>
<%= follow.federails_actor.name %>
<%= follow.actor.name %>
<% end %>
followed
<%= link_to follow.target_actor.name, follow.target_actor.entity %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/activities/_update_actor.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<%- subject = activity&.federails_actor %>
<%- subject = activity&.actor %>
<%- object = activity&.entity %>
<%- thing = object&.entity %>
<% if thing && !thing.is_a?(User) && (thing.grants_permission_to?(["view", "edit", "own"], current_user) || thing.grants_permission_to?(["view", "edit", "own"], current_user&.roles)) %>
Expand Down

0 comments on commit 471c88f

Please sign in to comment.