diff options
author | David Yip <yipdw@member.fsf.org> | 2018-05-04 14:16:30 -0500 |
---|---|---|
committer | David Yip <yipdw@member.fsf.org> | 2018-05-04 14:16:30 -0500 |
commit | 7600067a300b650a6f30da19a469c913243f3a13 (patch) | |
tree | 8b84acffba4bd167b8e7c6d332c48013b68e7079 /app/lib/activitypub/tag_manager.rb | |
parent | cb62935c0b00f41ff5d4ab77a8cc38174b05d186 (diff) | |
parent | 6793bec4c67e695100cb4d8551f0bda0b7e87b12 (diff) |
Merge remote-tracking branch 'origin/master' into gs-master
Conflicts: app/controllers/follower_accounts_controller.rb app/controllers/following_accounts_controller.rb db/schema.rb
Diffstat (limited to 'app/lib/activitypub/tag_manager.rb')
-rw-r--r-- | app/lib/activitypub/tag_manager.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/lib/activitypub/tag_manager.rb b/app/lib/activitypub/tag_manager.rb index fa2a8f7d3..908ea9639 100644 --- a/app/lib/activitypub/tag_manager.rb +++ b/app/lib/activitypub/tag_manager.rb @@ -38,6 +38,10 @@ class ActivityPub::TagManager end end + def generate_uri_for(_target) + URI.join(root_url, 'payloads', SecureRandom.uuid) + end + def activity_uri_for(target) raise ArgumentError, 'target must be a local activity' unless %i(note comment activity).include?(target.object_type) && target.local? |