(.+)<\/p><\/section>/) + create( + name: actor.name, + slug: actor.username, + links_attributes: actor.extensions["attachment"]&.select { |it| it["type"] == "Link" }&.map { |it| {url: it["href"]} }, + caption: matches[1], + notes: matches[2], + federails_actor: actor + ) + end + def to_activitypub_object { "@context": { diff --git a/app/views/creators/_creator.html.erb b/app/views/creators/_creator.html.erb index 2163052c0..585670d5f 100644 --- a/app/views/creators/_creator.html.erb +++ b/app/views/creators/_creator.html.erb @@ -1,7 +1,10 @@
@<%= @creator.federails_actor.at_address if SiteSettings.federation_enabled? %>
++ <% if @creator.remote? %> + <%= link_to "@" + @creator.federails_actor.at_address, @creator.federails_actor.profile_url, target: "new" %> + <% else %> + @<%= @creator.federails_actor.at_address if SiteSettings.federation_enabled? %> + <% end %> +
<%= render FollowButtonComponent.new(follower: current_user, target: @creator) %> <% end %>