Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F21907818
web_pusher_worker.ex
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
581 B
Referenced Files
None
Subscribers
None
web_pusher_worker.ex
View Options
# Pleroma: A lightweight social networking server
# Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule
Pleroma.Workers.WebPusherWorker
do
alias
Pleroma.Notification
alias
Pleroma.Repo
use
Pleroma.Workers.WorkerHelper
,
queue
:
"web_push"
@impl
Oban.Worker
def
perform
(%{
"op"
=>
"web_push"
,
"notification_id"
=>
notification_id
},
_job
)
do
notification
=
Notification
|>
Repo
.
get
(
notification_id
)
|>
Repo
.
preload
([
:activity
])
Pleroma.Web.Push.Impl
.
perform
(
notification
)
end
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Sun, Dec 28, 1:42 AM (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
764754
Default Alt Text
web_pusher_worker.ex (581 B)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline
Log In to Comment