From 7e4faa045482f30432ccb1c1285f333936015f37 Mon Sep 17 00:00:00 2001 From: Peter Deltchev Date: Fri, 23 Dec 2016 07:31:06 -0800 Subject: [PATCH] #25: Profile comment notifications hotfix. --- app/Models/Activity.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/Models/Activity.php b/app/Models/Activity.php index edc79039..d202f8b7 100644 --- a/app/Models/Activity.php +++ b/app/Models/Activity.php @@ -221,11 +221,7 @@ class Activity extends Model { switch($this->activity_type) { case static::TYPE_NEW_COMMENT: - if ($this->isProfileComment()) { - return $this->resource->getResourceType(); - } else { - return $this->resource->resource->getResourceType(); - } + return $this->resource->resource->getResourceType(); case static::TYPE_CONTENT_FAVOURITED: return $this->resource->getResourceType(); }