mirror of
https://github.com/friendica/friendica
synced 2025-04-25 20:30:11 +00:00
Some more warnings and erors are fixed
This commit is contained in:
parent
61cbcf85a1
commit
3a840aa22d
4 changed files with 43 additions and 19 deletions
|
@ -2674,9 +2674,11 @@ class Item
|
|||
'unseen' => 1,
|
||||
];
|
||||
|
||||
$signed = Diaspora::createLikeSignature($uid, $new_item);
|
||||
if (!empty($signed)) {
|
||||
$new_item['diaspora_signed_text'] = json_encode($signed);
|
||||
if (in_array($activity, [Activity::LIKE, Activity::DISLIKE])) {
|
||||
$signed = Diaspora::createLikeSignature($uid, $new_item);
|
||||
if (!empty($signed)) {
|
||||
$new_item['diaspora_signed_text'] = json_encode($signed);
|
||||
}
|
||||
}
|
||||
|
||||
self::insert($new_item, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue