Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85830281
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
1014 B
Referenced Files
None
Subscribers
None
View Options
diff --git a/lib/pleroma/web/thread_mute.ex b/lib/pleroma/web/thread_mute.ex
index 50a6219d1..333b26246 100644
--- a/lib/pleroma/web/thread_mute.ex
+++ b/lib/pleroma/web/thread_mute.ex
@@ -1,26 +1,25 @@
# Pleroma: A lightweight social networking server
# Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.ThreadMute do
use Ecto.Schema
- alias Pleroma.{Activity, Notification, User}
+ alias Pleroma.{Activity, Notification, User, Repo}
schema "thread_mutes" do
belongs_to(:user, User, type: Pleroma.FlakeId)
field(:context, :string)
end
def add_mute(user, id) do
- user_id = user.id
%{data: %{"context" => context}} = Activity.get_by_id(id)
- Pleroma.Repo.insert(%Pleroma.Web.ThreadMute{user: user_id, context: context})
+ Repo.insert(%Pleroma.Web.ThreadMute{}, %{user_id: user.id, context: context})
end
def remove_mute(user, id) do
end
def mute_thread() do
end
end
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sun, Nov 1, 3:22 AM (17 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1802326
Default Alt Text
(1014 B)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline