logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 10489b4e4ab75c72f3fb49761cb7e08151752a6e
parent: 40c45f5dd958aa1319b4e8cb664e6b4cac029526
Author: Eugen Rochko <eugen@zeonfederated.com>
Date:   Fri, 18 Aug 2017 02:29:12 +0200

If url attribute not present in Note, fallback to id attribute (#4629)


Diffstat:

Mapp/lib/activitypub/activity/create.rb2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/lib/activitypub/activity/create.rb b/app/lib/activitypub/activity/create.rb @@ -32,7 +32,7 @@ class ActivityPub::Activity::Create < ActivityPub::Activity def status_params { uri: @object['id'], - url: @object['url'], + url: @object['url'] || @object['id'], account: @account, text: text_from_content || '', language: language_from_content,