Skip to content

Commit

Permalink
Ensure boolean type...
Browse files Browse the repository at this point in the history
... to not trigger not null constraints.
  • Loading branch information
oneiros committed Feb 24, 2025
1 parent 499e084 commit dbaf33e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/actor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ class Actor < ApplicationRecord
def self.json_to_attributes(json_object)
{
actor_type: json_object["type"],
discoverable: json_object["discoverable"],
indexable: json_object["indexable"],
discoverable: !!json_object["discoverable"],
indexable: !!json_object["indexable"],
username: json_object["preferredUsername"],
name: json_object["name"],
summary: json_object["summary"]
Expand Down

0 comments on commit dbaf33e

Please sign in to comment.