Commit a320c77a authored by thomas craipeau's avatar thomas craipeau
Browse files

Merge branch 'master' into qa-merge

parents f6f9cff0 a3500456
......@@ -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