Commit 0456f3f6 authored by swentel's avatar swentel

Issue #3174744: pleroma works!

parent b8d0bd3c
......@@ -8,6 +8,7 @@ come.
The module has been tested with the following federated platforms:
- Mastodon: follow/accept, post notes, reply
- Pleroma: follow/accept, post notes, reply
Open an issue if you have successfully interacted with another platform!
......
......@@ -108,6 +108,7 @@ class DynamicTypes extends TypePluginBase {
$attributes = [
'type' => $this->getConfiguration()['object'],
'id' => $this->renderUrl($entity),
'attributedTo' => $activity->getActor(),
];
foreach ($this->getConfiguration()['field_mapping'] as $mapping) {
......@@ -129,7 +130,7 @@ class DynamicTypes extends TypePluginBase {
$type = Type::create($attributes);
$activity_attributes = [
'type' => $this->getConfiguration()['activity'],
'id' => $this->renderUrl($entity),
'id' => $this->renderUrl($activity),
'actor' => $activity->getActor(),
'to' => $to,
'object' => $type->toArray()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment