Update activitypub.ex
This commit is contained in:
parent
0b88881934
commit
da4cdc612a
1 changed files with 2 additions and 2 deletions
|
@ -72,13 +72,13 @@ defmodule Nulla.ActivityPub do
|
||||||
Jason.OrderedObject.new(
|
Jason.OrderedObject.new(
|
||||||
type: "Image",
|
type: "Image",
|
||||||
mediaType: MIME.from_path(user.avatar),
|
mediaType: MIME.from_path(user.avatar),
|
||||||
url: "https://#{domain}#{user.avatar}"
|
url: "https://#{domain}/files/#{user.avatar}"
|
||||||
),
|
),
|
||||||
image:
|
image:
|
||||||
Jason.OrderedObject.new(
|
Jason.OrderedObject.new(
|
||||||
type: "Image",
|
type: "Image",
|
||||||
mediaType: MIME.from_path(user.banner),
|
mediaType: MIME.from_path(user.banner),
|
||||||
url: "https://#{domain}#{user.banner}"
|
url: "https://#{domain}/files/#{user.banner}"
|
||||||
),
|
),
|
||||||
"vcard:bday": user.birthday,
|
"vcard:bday": user.birthday,
|
||||||
"vcard:Address": user.location
|
"vcard:Address": user.location
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue