blob: 2abe67635f6c7562c4218a3e8559c91a48ef8120 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
module ProfileHelper
def display_name(account)
account.display_name.blank? ? account.username : account.display_name
end
def profile_url(account)
account.local? ? super(name: account.username) : account.url
end
def status_url(status)
status.local? ? super(name: status.account.username, id: status.stream_entry.id) : status.url
end
end
|