summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcin mikołajczak <git@mkljczk.pl>2024-05-20 23:25:50 +0200
committermarcin mikołajczak <git@mkljczk.pl>2024-05-20 23:25:50 +0200
commit36fa0debfe66d3b706eeaa09227edd8b82c70aba (patch)
treea1486e145ef356c24c796a5cc254e4b210ba256e
parent2e76ceb5b4c8abf860f9d078c80ae0fcbe1a4ffd (diff)
downloadpleroma-36fa0debfe66d3b706eeaa09227edd8b82c70aba.tar.gz
pleroma-36fa0debfe66d3b706eeaa09227edd8b82c70aba.zip
Fix `get_notified_from`
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
-rw-r--r--lib/pleroma/notification.ex4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pleroma/notification.ex b/lib/pleroma/notification.ex
index 55c47e966..942aa7198 100644
--- a/lib/pleroma/notification.ex
+++ b/lib/pleroma/notification.ex
@@ -526,7 +526,7 @@ defmodule Pleroma.Notification do
Enum.filter(potential_receivers, fn u -> u.ap_id in notification_enabled_ap_ids end)
end
- def get_notified_from_activity(_, _local_only), do: {[], []}
+ def get_notified_from_activity(_, _local_only), do: []
def get_notified_subscribers_from_activity(activity, local_only \\ true)
@@ -544,7 +544,7 @@ defmodule Pleroma.Notification do
Enum.filter(potential_receivers, fn u -> u.ap_id in notification_enabled_ap_ids end)
end
- def get_notified_subscribers_from_activity(_, _), do: {[], []}
+ def get_notified_subscribers_from_activity(_, _), do: []
# For some activities, only notify the author of the object
def get_potential_receiver_ap_ids(%{data: %{"type" => type, "object" => object_id}})