mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-05-17 01:02:38 +00:00
Only check for expiring activities on local accounts
This commit is contained in:
parent
e02101e15c
commit
18f59d7f75
|
@ -2284,7 +2284,7 @@ defmodule Pleroma.User do
|
|||
params = %{pinned_activities: List.delete(user.pinned_activities, id)}
|
||||
|
||||
# if pinned activity was scheduled for deletion, we reschedule it for deletion
|
||||
if data["expires_at"] do
|
||||
if user.local && data["expires_at"] do
|
||||
{:ok, expires_at, _} = DateTime.from_iso8601(data["expires_at"])
|
||||
|
||||
Pleroma.Workers.PurgeExpiredActivity.enqueue(%{
|
||||
|
|
Loading…
Reference in a new issue