projects
/
akkoma
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
GOOGLE
[akkoma]
/
lib
/
pleroma
/
workers
/
nodeinfo_fetcher_worker.ex
1
defmodule Pleroma.Workers.NodeInfoFetcherWorker do
2
use Pleroma.Workers.WorkerHelper, queue: "nodeinfo_fetcher"
3
4
alias Oban.Job
5
alias Pleroma.Instances.Instance
6
7
@impl Oban.Worker
8
def perform(%Job{
9
args: %{"op" => "process", "source_url" => domain}
10
}) do
11
uri =
12
domain
13
|> URI.parse()
14
|> URI.merge("/")
15
16
Instance.update_metadata(uri)
17
end
18
end