Commit Graph

19 Commits (a20509b41e87219e6cf147bf880980794bff44da)

Author SHA1 Message Date
ysksn 9dd5e329ab Remove empty strings ()
unarist 4f337c020a Fix Cocaine::ExitStatusError when upload small non-animated GIF ()
Looks like copied tempfile need to be flushed before further processing. This issue won't happen if the uploaded file has enough file size.
Eugen Rochko 81cec35dbf Custom emoji ()
* Custom emoji

- In OStatus: `<link rel="emoji" name="coolcat" href="http://..." />`
- In ActivityPub: `{ type: "Emoji", name: ":coolcat:", href: "http://..." }`
- In REST API: Status object includes `emojis` array (`shortcode`, `url`)
- Domain blocks with reject media stop emojis
- Emoji file up to 50KB
- Web UI handles custom emojis
- Static pages render custom emojis as `<img />` tags

Side effects:

- Undo  optimization, as I needed to modify it to restore
  shortcode handling in emojify()
- Formatter#plaintext should now make sure stripped out line-breaks
  and paragraphs are replaced with newlines

* Fix emoji at the start not being converted
unarist 1eab53ee10 Fix an error when actor json couldn't be fetched in ResolveRemoteAccountService ()
* Fix an error when actor json couldn't be fetched in ResolveRemoteAccountService

* Add specs
nullkal 007ab330e6 Use charlock_holmes instead of nkf at FetchLinkCardService ()
* Specs for language detection

* Use CharlockHolmes instead of NKF

* Correct mistakes

* Correct style

* Set hint_enc instead of falling back and strip_tags

* Improve specs

* Add dependencies
abcang 5e6acf9601 Fix Nokogiri::HTML at FetchLinkCardService ()
Akihiko Odaki (@fn_aki@pawoo.net) e674608d10 A minor change for ProviderDiscovery and spec ()
* Do not default the format in ProviderDiscovery

The format should be determined when discovering, as it is in the current
implementation, and it is a flaw if it is not determined.

* Spec ProviderDiscovery
ThibG 8d4e7504b1 Additional specs for URI handling ()
ThibG bea97ea766 Add rspec to further specify FollowRemoteAccountService ()
Eugen 17c591ffba Punycode URI normalization ()
* Fix  - Whenever about to send a HTTP request, normalize the URI

* Add test for IDN request in FetchLinkCardService

* Perform IDN normalization on domains before they are stored in the DB
Eugen 2e4afccd9d Fix - Fix gif uploads ()
* Fix  - Fix gif uploads
Add specs for media attachment gifv conversion

* Add ffmpeg to travis

* Make travis install ffmpeg, not libav

* Switch travis to trusty
Matt Jankowski 89e8e110c8 Imports controller errors ()
* Add spec for settings/imports controller

* Add failing spec for settings/imports#create

* Fix broken imports

* Refactor ImportWorker
Eugen 12f72e1740 When avatar/header are GIF, generate static versions ()
* When avatar/header are GIF, generate static versions.
Account API returns "avatar"/"avatar_static", "header"/"header_static"
Static version is the same as original for other cases
Web UI de-animates avatars in toots, lists of users

Fix , fix , prerequisite for 

* Fix JS test

* Add rake task to generate static avatars/headers from GIF ones, add test
Effy Elden f876a8681d Update the Mastodon repository URL from Gargron/ to tootsuite/ in various places
Eugen Rochko 81065bc06c Adding test for ProcessFeedService
Eugen Rochko ce29624c6d Fixing image upload limits, allowing webm, merge/unmerge events trigger
timeline reload in UI, other small fixes
Eugen Rochko ae1fac0062 Add API to upload media attachments
Eugen Rochko a289c1d52f Handle delete Salmons, todo: clean up timelines
Eugen Rochko b640f35621 Writing out more tests, fixed some bugs