]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/DFRN.php
Merge pull request #5848 from nupplaphil/friendica-5847
[friendica.git] / src / Protocol / DFRN.php
index 1ab4d8f9e4959592cf887e9f09f651989de53455..4d61f9aee00bb36f2a27225070e04d17c7f7b333 100644 (file)
@@ -2349,6 +2349,12 @@ class DFRN
                                if (Item::exists($condition)) {
                                        return false;
                                }
+
+                               // The owner of an activity must be the author
+                               $item["owner-name"] = $item["author-name"];
+                               $item["owner-link"] = $item["author-link"];
+                               $item["owner-avatar"] = $item["author-avatar"];
+                               $item["owner-id"] = $item["author-id"];
                        } else {
                                $is_like = false;
                        }