From 77e84b25fb1d10a28c021dcd47dfbcf6eb2c2005 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Fri, 27 Nov 2020 17:20:21 +0100 Subject: [PATCH] Fix leftover from Picture -> Media rename Signed-off-by: Thomas Citharel --- lib/mobilizon/posts/post.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mobilizon/posts/post.ex b/lib/mobilizon/posts/post.ex index 485354bb2..c93d76b81 100644 --- a/lib/mobilizon/posts/post.ex +++ b/lib/mobilizon/posts/post.ex @@ -59,7 +59,7 @@ defmodule Mobilizon.Posts.Post do field(:visibility, PostVisibility, default_value: :public) belongs_to(:author, Actor) belongs_to(:attributed_to, Actor) - belongs_to(:picture, Picture, on_replace: :update) + belongs_to(:picture, Media, on_replace: :update) many_to_many(:tags, Tag, join_through: "posts_tags", on_replace: :delete) many_to_many(:media, Media, join_through: "posts_medias", on_replace: :delete)