diff options
author | ThibG <thib@sitedethib.com> | 2019-03-04 22:51:23 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2019-03-04 22:51:23 +0100 |
commit | 833ffce2df68ae3b673e230fcb273da5d8c4681f (patch) | |
tree | f06854fd6b50c62897d9c25a9b50c21d93c894dd /app/serializers | |
parent | 7a25bb858a2a7f3662d2ad2a8cba9ac7ea141aca (diff) |
Store remote votes URI (#10158)
* Store remote votes URI * Add spec for accepting remote votes * Make poll vote id generation work the same way as follows
Diffstat (limited to 'app/serializers')
-rw-r--r-- | app/serializers/activitypub/vote_serializer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/activitypub/vote_serializer.rb b/app/serializers/activitypub/vote_serializer.rb index 655d04d22..248190404 100644 --- a/app/serializers/activitypub/vote_serializer.rb +++ b/app/serializers/activitypub/vote_serializer.rb @@ -6,7 +6,7 @@ class ActivityPub::VoteSerializer < ActiveModel::Serializer :in_reply_to, :to def id - [ActivityPub::TagManager.instance.uri_for(object.account), '#votes/', object.id].join + ActivityPub::TagManager.instance.uri_for(object) || [ActivityPub::TagManager.instance.uri_for(object.account), '#votes/', object.id].join end def type |