]> cat aescling's git repositories - mastodon.git/commit
Fix #416 - Generate random unique 14-byte (19 characters) shortcodes
authorEugen Rochko <eugen@zeonfederated.com>
Thu, 5 Jan 2017 23:21:12 +0000 (00:21 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 5 Jan 2017 23:29:12 +0000 (00:29 +0100)
commit7b9f8766e88dceb9519085deada3fa673e4c015b
treea8d70a85796fe1e8027ad77ca1a84fe69caf9cef
parent9f21eb6064c6cdc2bc8606e5d18173655797c233
Fix #416 - Generate random unique 14-byte (19 characters) shortcodes
for local attachments, use them in URLs. Check status privacy
before redirecting to actual file.
app/controllers/media_controller.rb
app/models/media_attachment.rb
db/migrate/20170105224407_add_shortcode_to_media_attachments.rb [new file with mode: 0644]
db/schema.rb