Commiting

This commit is contained in:
mgabdev
2020-11-25 15:22:37 -06:00
parent fb612f60c8
commit b4e370d3d3
136 changed files with 4171 additions and 3231 deletions

View File

@@ -34,6 +34,14 @@ class REST::StatusStatSerializer < ActiveModel::Serializer
end
end
def reblogs_count
if instance_options && instance_options[:unreblog]
object.reblogs_count - 1
else
object.reblogs_count
end
end
def current_user?
!current_user.nil?
end