Commit Graph

12 Commits (37e98d9d56a26f2cc3aa894d1df2829a56709d4f)

Author SHA1 Message Date
Nick Schonning 49f1168050 Autofix Rubocop Style/RedundantBegin () 2023-02-19 07:09:40 +09:00
Nick Schonning 4553bc78ba Autofix Rubocop Style/PerlBackrefs () 2023-02-18 14:20:20 +09:00
Nick Schonning 4a49c50e64 Apply Rubocop Performance/BlockGivenWithExplicitBlock ()
* Apply Rubocop Performance/BlockGivenWithExplicitBlock

* Unprefix used block parameter
2023-02-08 10:36:23 +01:00
Eugen Rochko d6d285eb75 Fix being able to post URLs longer than 4096 characters () 2022-03-30 14:46:03 +02:00
Eugen Rochko 5a7219e532 Refactor formatter ()
* Refactor formatter

* Move custom emoji pre-rendering logic to view helpers

* Move more methods out of Formatter

* Fix code style issues

* Remove Formatter

* Add inline poll options to RSS feeds

* Remove unused helper method

* Fix code style issues

* Various fixes and improvements

* Fix test
2022-03-26 02:53:34 +01:00
Claire a33f8f787a Update twitter-text from 1.14 to 3.1.0 and fix toot character counting ()
* Update twitter-text from 1.14 to 3.1.0

* Disable emoji parsing

* Properly depend on twitter-text for url detection

* Fix some URLs being wrongly detected client-side

* Add test for server-side validation of non-autolinkable URLs

* Fix server-side status length counting
2021-03-02 12:02:56 +01:00
luigi c19fe86d66 Optimize some regex matching ()
* Use Regex#match?

* Replace =~ too

* Avoid to call match? from Nil

* Keep value of Regexp.last_match
2021-01-22 10:09:08 +01:00
Yamagishi Kazutoshi fba46b6072 Using double splat operator () 2017-12-06 11:41:57 +01:00
Eugen Rochko 3df46ce5a8 Fix some rubocop style issues () 2017-11-17 10:06:26 +09:00
Yamagishi Kazutoshi d54273621b Skip formatting for cashtag in status text ()
Resolve 
2017-05-24 14:32:53 +02:00
abcang e3dcaaf0b9 Unify the method of extracting tags () 2017-05-19 20:19:14 +02:00
masarakki 23bf01bcd6 use Twitter::Extractor for creating links () 2017-05-05 19:48:22 +02:00