diff options
-rw-r--r-- | create.rb | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -67,6 +67,16 @@ post '/create' do end end + # https://docs.joinmastodon.org/spec/activitypub/#Mention + if to.size == 1 # mastodon DM + m = { + 'type' => 'Mention', + 'href' => to[0], + 'name' => mention(to[0]) + } + tag << m unless tag.include? m + end + object = { 'to' => to, 'type' => 'Note', |