Commit 57530a5c authored by thomas craipeau's avatar thomas craipeau
Browse files

Merge branch 'qa-merge' into dev-merge

parents 29c89c4b a320c77a
......@@ -799,7 +799,7 @@ class News {
public static function addParamsForNewsFromActivitypub($type, $id, $params){
$connectedUserId = Yii::app()->session["userId"];
$connectedUser = Person::getById($connectedUserId);
$activitypubEnable = Preference::isActivitypubActivate($connectedUser["preferences"]);
$activitypubEnable = Preference::isActivitypubActivate(@$connectedUser["preferences"]);
if($type == Person::COLLECTION && $id == $connectedUserId && $activitypubEnable){
$activitypubParams = ["type" => "activitypub"];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment