Change path from nodeinfo to metadata->features
This commit is contained in:
parent
86795d5ac2
commit
a1325d5fd9
2 changed files with 3 additions and 3 deletions
|
|
@ -152,7 +152,7 @@ keeping it in cache for #{div(cache_ms, 1000)}s")
|
|||
|> Tesla.get!()
|
||||
|> Map.get(:body)
|
||||
|> Jason.decode!()
|
||||
|> Map.get("features")
|
||||
|> get_in(["metadata", "features"])
|
||||
|> Enum.member?("shareable_emoji_packs")
|
||||
|
||||
if shareable_packs_available do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue