From: Michael Date: Sat, 6 Oct 2018 09:38:51 +0000 (+0000) Subject: Additional check to ensure that the owner of an activity is always the author X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=acf31ab64b0d937da455d6363d7810b37a2d7bd9;p=friendica.git Additional check to ensure that the owner of an activity is always the author --- 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; }