Show group address in group metadata

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2020-09-02 10:00:39 +02:00
parent 93728cb9d7
commit 952e592e2c
8 changed files with 61 additions and 28 deletions

View File

@@ -23,7 +23,7 @@ defmodule Mobilizon.Web.Cache.ActivityPub do
{:commit, Actor.t()} | {:ignore, nil}
def get_actor_by_name(name) do
Cachex.fetch(@cache, "actor_" <> name, fn "actor_" <> name ->
case Actors.get_actor_by_name(name) do
case Actors.get_actor_by_name_with_preload(name) do
%Actor{} = actor ->
{:commit, actor}