Skip to content

Commit

Permalink
use public ID as url param for comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Floppy committed Jan 14, 2025
1 parent 0a8050b commit 23d688b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/comment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Comment < ApplicationRecord
belongs_to :commentable, polymorphic: true

include Federails::DataEntity
acts_as_federails_data handles: "Note", actor_entity_method: :commenter
acts_as_federails_data handles: "Note", actor_entity_method: :commenter, url_param: :public_id

def to_activitypub_object
# Comments become Notes in ActvityPub
Expand Down

0 comments on commit 23d688b

Please sign in to comment.