Merge pull request #5840 from annando/like-owner
Ensure that the owner of an activity is always the author
This commit is contained in:
commit
8860c1055e
|
@ -2349,6 +2349,12 @@ class DFRN
|
||||||
if (Item::exists($condition)) {
|
if (Item::exists($condition)) {
|
||||||
return false;
|
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 {
|
} else {
|
||||||
$is_like = false;
|
$is_like = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user