This website works better with JavaScript.
Home
Explore
Sign In
miteruzo
/
btrc-hub
Watch
1
Star
0
Fork
0
Code
Issues
69
Pull Requests
1
Releases
0
Wiki
Activity
Browse Source
#61
feature/061
みてるぞ
1 week ago
parent
be14ae3ee4
commit
cac4ad7f51
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
backend/app/representations/post_repr.rb
+ 1
- 1
backend/app/representations/post_repr.rb
View File
@@ -8,7 +8,7 @@ module PostRepr
def base post, current_user = nil
json = post.as_json(BASE)
return json unless current_user
return json
.merge(viewed: false)
unless current_user
viewed = current_user.viewed?(post)
json.merge(viewed:)
Write
Preview
Loading…
Cancel
Save