Object Fetcher: set cache after reinjecting
Probably fixes the issue hj had, where polls would have different counters between endpoints.
This commit is contained in:
parent
efc4d6d9ec
commit
54746c6c26
2 changed files with 18 additions and 1 deletions
|
|
@ -38,7 +38,8 @@ defmodule Pleroma.Object.Fetcher do
|
|||
data <- maybe_reinject_internal_fields(data, struct),
|
||||
changeset <- Object.change(struct, %{data: data}),
|
||||
changeset <- touch_changeset(changeset),
|
||||
{:ok, object} <- Repo.insert_or_update(changeset) do
|
||||
{:ok, object} <- Repo.insert_or_update(changeset),
|
||||
{:ok, object} <- Object.set_cache(object) do
|
||||
{:ok, object}
|
||||
else
|
||||
e ->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue