Commiting
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user