mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 00:26:30 +00:00
reverting pinned posts in filtering
This commit is contained in:
parent
3ab83f837e
commit
29a7bcd5bb
1 changed files with 2 additions and 4 deletions
|
@ -150,10 +150,8 @@ defmodule Mix.Tasks.Pleroma.Database do
|
|||
|> Pleroma.RepoStreamer.chunk_stream(100)
|
||||
|> Stream.each(fn activities ->
|
||||
Enum.each(activities, fn activity ->
|
||||
if not Pleroma.Activity.pinned_by_actor?(activity) do
|
||||
expires_at = Timex.shift(activity.inserted_at, days: days)
|
||||
Pleroma.ActivityExpiration.create(activity, expires_at, false)
|
||||
end
|
||||
expires_at = Timex.shift(activity.inserted_at, days: days)
|
||||
Pleroma.ActivityExpiration.create(activity, expires_at, false)
|
||||
end)
|
||||
end)
|
||||
|> Stream.run()
|
||||
|
|
Loading…
Reference in a new issue