We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 499e084 commit dbaf33eCopy full SHA for dbaf33e
app/models/actor.rb
@@ -26,8 +26,8 @@ class Actor < ApplicationRecord
26
def self.json_to_attributes(json_object)
27
{
28
actor_type: json_object["type"],
29
- discoverable: json_object["discoverable"],
30
- indexable: json_object["indexable"],
+ discoverable: !!json_object["discoverable"],
+ indexable: !!json_object["indexable"],
31
username: json_object["preferredUsername"],
32
name: json_object["name"],
33
summary: json_object["summary"]
0 commit comments