mirror of
https://github.com/friendica/friendica
synced 2025-04-28 03:50:17 +00:00
Use gravity instead of verb
This commit is contained in:
parent
8c2f91573a
commit
76dab3b2d7
14 changed files with 59 additions and 56 deletions
|
@ -2310,7 +2310,7 @@ class DFRN
|
|||
) {
|
||||
$is_like = true;
|
||||
$item["type"] = "activity";
|
||||
$item["gravity"] = GRAVITY_LIKE;
|
||||
$item["gravity"] = GRAVITY_ACTIVITY;
|
||||
// only one like or dislike per person
|
||||
// splitted into two queries for performance issues
|
||||
$condition = ['uid' => $item["uid"], 'author-id' => $item["author-id"],
|
||||
|
|
|
@ -2049,7 +2049,7 @@ class Diaspora
|
|||
|
||||
$datarray["type"] = "activity";
|
||||
$datarray["verb"] = $verb;
|
||||
$datarray["gravity"] = GRAVITY_LIKE;
|
||||
$datarray["gravity"] = GRAVITY_ACTIVITY;
|
||||
$datarray["parent-uri"] = $parent_item["uri"];
|
||||
|
||||
$datarray["object-type"] = ACTIVITY_OBJ_NOTE;
|
||||
|
|
|
@ -451,7 +451,7 @@ class OStatus
|
|||
|
||||
$item["verb"] = ACTIVITY_LIKE;
|
||||
$item["parent-uri"] = $orig_uri;
|
||||
$item["gravity"] = GRAVITY_LIKE;
|
||||
$item["gravity"] = GRAVITY_ACTIVITY;
|
||||
}
|
||||
|
||||
// http://activitystrea.ms/schema/1.0/rsvp-yes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue