Fixing image upload limits, allowing webm, merge/unmerge events trigger
timeline reload in UI, other small fixes
This commit is contained in:
parent
3d566279cb
commit
ce29624c6d
15 changed files with 144 additions and 61 deletions
|
@ -17,7 +17,11 @@ class FeedManager
|
|||
def push(timeline_type, account, status)
|
||||
redis.zadd(key(timeline_type, account.id), status.id, status.id)
|
||||
trim(timeline_type, account.id)
|
||||
ActionCable.server.broadcast("timeline:#{account.id}", type: 'update', timeline: timeline_type, message: inline_render(account, status))
|
||||
broadcast(account.id, type: 'update', timeline: timeline_type, message: inline_render(account, status))
|
||||
end
|
||||
|
||||
def broadcast(account_id, options = {})
|
||||
ActionCable.server.broadcast("timeline:#{account_id}", options)
|
||||
end
|
||||
|
||||
def trim(type, account_id)
|
||||
|
|
|
@ -35,7 +35,7 @@ class Formatter
|
|||
def link_mentions(html, mentions)
|
||||
html.gsub(Account::MENTION_RE) do |match|
|
||||
acct = Account::MENTION_RE.match(match)[1]
|
||||
mention = mentions.find { |mention| mention.account.acct.eql?(acct) }
|
||||
mention = mentions.find { |item| item.account.acct.eql?(acct) }
|
||||
|
||||
mention.nil? ? match : mention_html(match, mention.account)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue