mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-26 01:38:36 +00:00
Fix getting categories from global search engine
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
76ff11ceae
commit
c051e26380
1 changed files with 1 additions and 1 deletions
|
@ -187,7 +187,7 @@ defmodule Mobilizon.Service.GlobalSearch.SearchMobilizon do
|
|||
ends_on: parse_date(data["endTime"]),
|
||||
url: data["url"],
|
||||
picture: picture,
|
||||
category: String.to_existing_atom(Categories.get_category(data["category"])),
|
||||
category: data["category"] |> Categories.get_category() |> String.downcase() |> String.to_existing_atom(),
|
||||
organizer_actor: %Actor{
|
||||
id: data["creator"]["id"],
|
||||
name: data["creator"]["displayName"],
|
||||
|
|
Loading…
Reference in a new issue