mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-22 08:06:55 +00:00
Rename assignment for consistency
This commit is contained in:
parent
47ce3a4a96
commit
a2e7db43aa
1 changed files with 2 additions and 2 deletions
|
@ -36,8 +36,8 @@ defmodule Pleroma.Workers.PollWorker do
|
||||||
def perform(%Job{args: %{"op" => "refresh", "activity_id" => activity_id}}) do
|
def perform(%Job{args: %{"op" => "refresh", "activity_id" => activity_id}}) do
|
||||||
with {_, %Activity{object: object}} <-
|
with {_, %Activity{object: object}} <-
|
||||||
{:activity, Activity.get_by_id_with_object(activity_id)},
|
{:activity, Activity.get_by_id_with_object(activity_id)},
|
||||||
{:ok, naive_closed} <- NaiveDateTime.from_iso8601(object.data["closed"]),
|
{:ok, end_time} <- NaiveDateTime.from_iso8601(object.data["closed"]),
|
||||||
{_, :lt} <- {:closed_compare, NaiveDateTime.compare(object.updated_at, naive_closed)},
|
{_, :lt} <- {:closed_compare, NaiveDateTime.compare(object.updated_at, end_time)},
|
||||||
{_, {:ok, _object}} <- {:refetch, Fetcher.refetch_object(object)} do
|
{_, {:ok, _object}} <- {:refetch, Fetcher.refetch_object(object)} do
|
||||||
stream_update(activity_id)
|
stream_update(activity_id)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue