From acf31ab64b0d937da455d6363d7810b37a2d7bd9 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 6 Oct 2018 09:38:51 +0000 Subject: [PATCH] Additional check to ensure that the owner of an activity is always the author --- src/Protocol/DFRN.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Protocol/DFRN.php b/src/Protocol/DFRN.php index 1ab4d8f9e4..4d61f9aee0 100644 --- a/src/Protocol/DFRN.php +++ b/src/Protocol/DFRN.php @@ -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; }