aboutsummaryrefslogtreecommitdiff
path: root/Backend/Api
diff options
context:
space:
mode:
Diffstat (limited to 'Backend/Api')
-rw-r--r--Backend/Api/Api/Services/PostService.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/Backend/Api/Api/Services/PostService.cs b/Backend/Api/Api/Services/PostService.cs
index cb59330..0799f10 100644
--- a/Backend/Api/Api/Services/PostService.cs
+++ b/Backend/Api/Api/Services/PostService.cs
@@ -162,7 +162,11 @@ namespace Api.Services
tosend.ratingscount = ps.ratingscount;
if (p.ownerId == userid)
- return null;
+ {
+ tosend.myrating = -1;
+ return tosend;
+ }
+
if(rating.rating == 0)// ako nema rating staviti 0
{
var r = p.ratings.Find(x => x.userId == userid);