Merge pull request #5840 from annando/like-owner

Ensure that the owner of an activity is always the author
This commit is contained in:
Tobias Diekershoff 2018-10-06 11:48:52 +02:00 committed by GitHub
commit 8860c1055e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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;
}