projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68a1263
)
Privacy option affects all push notifications, not just Direct Messages
author
Mark Felder
<feld@FreeBSD.org>
Wed, 6 May 2020 21:30:05 +0000
(16:30 -0500)
committer
Mark Felder
<feld@FreeBSD.org>
Wed, 6 May 2020 21:30:05 +0000
(16:30 -0500)
lib/pleroma/web/push/impl.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/push/impl.ex
b/lib/pleroma/web/push/impl.ex
index a9f893f7be1bc3302975827ccd4f6458bb7c1906..7f80bb0c92cb4d9aac11e0e9de066c38d5b83051 100644
(file)
--- a/
lib/pleroma/web/push/impl.ex
+++ b/
lib/pleroma/web/push/impl.ex
@@
-106,14
+106,13
@@
defmodule Pleroma.Web.Push.Impl do
def build_content(
%{
- activity: %{data: %{"directMessage" => true}},
user: %{notification_settings: %{privacy_option: true}}
- },
+ }
= notification
,
actor,
_object,
-
_
mastodon_type
+ mastodon_type
) do
- %{title:
"New Direct Message"
, body: "@#{actor.nickname}"}
+ %{title:
format_title(notification, mastodon_type)
, body: "@#{actor.nickname}"}
end
def build_content(notification, actor, object, mastodon_type) do