Fix reblogs of reblogs in UI, add follow form in UI
This commit is contained in:
parent
f24cb32e99
commit
d0e2733f63
10 changed files with 113 additions and 21 deletions
|
@ -59,11 +59,11 @@ class Account < ApplicationRecord
|
|||
end
|
||||
|
||||
def favourited?(status)
|
||||
(status.reblog? ? status.reblog : status).favourites.where(account: self).count == 1
|
||||
(status.reblog? ? status.reblog : status).favourites.where(account: self).count > 0
|
||||
end
|
||||
|
||||
def reblogged?(status)
|
||||
(status.reblog? ? status.reblog : status).reblogs.where(account: self).count == 1
|
||||
(status.reblog? ? status.reblog : status).reblogs.where(account: self).count > 0
|
||||
end
|
||||
|
||||
def keypair
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue