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

@@ -148,7 +148,7 @@ module AccountInteractions
end
def bookmarked?(status)
status_bookmarks.where(account: self).exists?
status_bookmarks.where(account: self, status: status).exists?
end
def reblogged?(status)

View File

@@ -72,6 +72,10 @@ class Group < ApplicationRecord
end
end
def has_password?
return !!self.password && self.password.gsub(/\s+/, "").length > 1 && self.password.to_s != "null"
end
private
def set_password