Rename assignment for consistency

This commit is contained in:
Mark Felder 2024-09-30 14:23:04 -04:00
parent 47ce3a4a96
commit a2e7db43aa

View file

@ -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)